# Mail Simple Configuration

**URL:** <https://forum.flowable.org/t/mail-simple-configuration/6318>\
**Category:** Uncategorized\
**Created:** [July 5, 2020, 3:27am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318 "2020-07-05T03:27:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [July 5, 2020, 3:27am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/1 "2020-07-05T03:27:54Z")

</div>

I want to configure the mail properties. I use flowable engine in the backend of my project. I read in manual that I should use activiti.cfg.xml:  
“Following properties can be set in the activiti.cfg.xml configuration file”  
Is there another way to set required properties. I prefer not to use xml file in my project.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![fiki574](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/fiki574/32/1675_2.png) [@fiki574](https://forum.flowable.org/u/fiki574)\
**Post date:** [July 6, 2020, 7:41am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/2 "2020-07-06T07:41:50Z")

</div>

Add these to your project’s _application.properties_ and fill them accordingly:

```
flowable.mail.server.host=
flowable.mail.server.port=
flowable.mail.server.username=
flowable.mail.server.password=
flowable.mail.server.use-tls=
flowable.mail.server.use-ssl=
flowable.mail.server.default-from=
```

---

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [July 7, 2020, 7:58am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/3 "2020-07-07T07:58:42Z")

</div>

Hi

flowable.mail.server.host=https://mail.test.com  
flowable.mail.server.port=5050  
flowable.mail.server.username=testMailUser  
flowable.mail.server.password=123123

I did what you said, but it seemed that my configuration was not set, and I got the below exception, while I set host and port:

com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: localhost, 25; timeout 60000;

---

<div class="post-metadata">

**Author:** ![fiki574](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/fiki574/32/1675_2.png) [@fiki574](https://forum.flowable.org/u/fiki574)\
**Post date:** [July 8, 2020, 6:50am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/4 "2020-07-08T06:50:37Z")

</div>

Provide all properties, or try the older version of properties depending on your Flowable version.

---

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [July 8, 2020, 8:03am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/5 "2020-07-08T08:03:39Z")

</div>

It did bot work. Thank you for your effort.

---

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [July 13, 2020, 8:38am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/6 "2020-07-13T08:38:49Z")

</div>

Is there somebody who helps me to use email service?

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [July 22, 2020, 6:56am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/7 "2020-07-22T06:56:09Z")

</div>

Hey @prs.parisa,

I think that the reply from @fiki574 is quite helpful. If it isn’t working for you, then please provide us with more details in how you are configuring your engine.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![dhanushx012](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dhanushx012](https://forum.flowable.org/u/dhanushx012)\
**Post date:** [July 28, 2020, 1:36pm UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/8 "2020-07-28T13:36:08Z")

</div>

I did what you said, but it seemed that my configuration was not set.

---

<div class="post-metadata">

**Author:** ![dhanushx012](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dhanushx012](https://forum.flowable.org/u/dhanushx012)\
**Post date:** [October 4, 2020, 8:22am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/9 "2020-10-04T08:22:38Z")

</div>

> [@prs.parisa](#):
>
> Is there somebody who helps me to use email service?

Is there somebody who helps me to use email service? [.](https://get-mxplayer.in)

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [October 7, 2020, 6:40am UTC](https://forum.flowable.org/t/mail-simple-configuration/6318/10 "2020-10-07T06:40:44Z")

</div>

Hey @dhanushx012,

As I already mentioned the information provided by @fiki574 in [Mail Simple Configuration](https://forum.flowable.org/t/mail-simple-configuration/6318/2) should be enough for you.

If something is not working for you then please share more information so we can help you out.

Cheers,  
Filip
