AnsweredAssumed Answered

Sending mails with Activiti using Gmail as SMTP

Question asked by matias on Dec 15, 2010
Latest reply on Oct 12, 2011 by tstephen
I wanted to use Gmail as SMTP.

I did …

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()

email.setTLS(true)

And now it works!

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

Thanks!

Outcomes