Sending mails with Activiti with TLS (eg using Gmail as SMTP)

Description

I wanted to use Gmail as SMTP.

I did ...

Code:
conf.setMailServerHost("smtp.gmail.com");
conf.setMailServerPort(587);
conf.setMailServerUsername("myname@gmail.com");
conf.setMailServerPassword("mypassword");

But at first it did not work because Gmail requires TLS.

So I added the following line in org.activiti.engine.impl.bpmn.MailActivityBehavior.setMailServerProperties()

Code:
email.setTLS(true)

And now it works!

It would be great if you add setMailTLS or something like that to the conf API.

Thanks!

Assignee

Tijs Rademakers

Reporter

Matias Bagini

Labels

None

Components

Fix versions

Priority

Minor
Configure