cancel
Showing results for 
Search instead for 
Did you mean: 

Email Configuration

narranil2
Champ in-the-making
Champ in-the-making
I'm trying to configure email on the Activiti enterprise and I've the following defined under activiti-app.properties,but once it try to send mail I'm getting following exception.Can any body advise on this?

email.host=smtp.mail.yahoo.com
email.port=587
email.useCredentials=true
email.username=anilkumarreddy@yahoo.com
email.password=####
email.enabled=true

emai.UseSSL=false
email.UseTLS=true


email.base.url=http://localhost:8080/activiti-app
email.from.default=no-reply@activiti.com
email.from.default.name=Activiti BPM
email.feedback.default=activiti@alfresco.com

[activiti-app-rest-Executor-1] ERROR com.activiti.service.common.EmailService  - Error while sending mail about a created task (15006) Mail server
connection failed; nested exception is com.sun.mail.util.MailConnectException: C
ouldn't connect to host, port: smtp.mail.yahoo.com, 587; timeout -1;
  nested exception is:
        java.net.SocketException: Permission denied: connect. Failed messages: c
om.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.mail
.yahoo.com, 587; timeout -1;
  nested exception is:
        java.net.SocketException: Permission denied: connect

Thanks,
Anil
1 ACCEPTED ANSWER

cjose
Elite Collaborator
Elite Collaborator
I was able to send an email successfully using the yahoo smtp setting you have there. Looks like the SSL and TLS configs you have is incorrect. Please fix those property names as described in https://docs.alfresco.com/activiti/docs/admin-guide/1.5.0/#emailServerConfiguration and try again.

email.ssl=true
email.tls=true

Regards,
Ciju

View answer in original post

2 REPLIES 2

cjose
Elite Collaborator
Elite Collaborator
I was able to send an email successfully using the yahoo smtp setting you have there. Looks like the SSL and TLS configs you have is incorrect. Please fix those property names as described in https://docs.alfresco.com/activiti/docs/admin-guide/1.5.0/#emailServerConfiguration and try again.

email.ssl=true
email.tls=true

Regards,
Ciju

narranil2
Champ in-the-making
Champ in-the-making
Thanks for the info,I'm able to figure it out and now I'm able to send email.