Mail Simple Configuration

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

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=
1 Like

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;

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

1 Like

It did bot work. Thank you for your effort.

Is there somebody who helps me to use email service?

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

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

Is there somebody who helps me to use email service? .

Hey @dhanushx012,

As I already mentioned the information provided by @fiki574 in Mail Simple Configuration 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