AnsweredAssumed Answered

Unable to send email

Question asked by manav on Feb 21, 2018
Latest reply on Feb 22, 2018 by manav

This is my email conf properties in alfresco-global.properties file

 

mail.host=smtp.gmail.com
mail.port=465
mail.username=***@gmail.com
mail.password=***
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true
mail.smtp.timeout=30000

I am getting this exceptions


2018-02-21 12:46:51,673 ERROR [action.executer.MailActionExecuter] [mailAsyncAction2] Failed to send email to  ramesh.pate1998@gmail.com : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect; message exceptions (1) are:
Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect
2018-02-21 12:46:51,673 ERROR [action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to ramesh.pate1998@gmail.com : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect; message exceptions (1) are:
Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect
2018-02-21 12:46:51,674 ERROR [action.executer.MailActionExecuter] [mailAsyncAction3] Failed to send email to  ramesh.pate1998@gmail.com : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect; message exceptions (1) are:
Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
nested exception is:
java.net.ConnectException: Connection refused: connect
Exception in thread "mailAsyncAction3" java.lang.ClassCastException: com.sun.proxy.$Proxy322 cannot be cast to org.alfresco.repo.action.executer.LoggingAwareExecuter
at org.alfresco.repo.action.ActionServiceImpl.onLogException(ActionServiceImpl.java:1823)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:442)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "mailAsyncAction2" java.lang.ClassCastException: com.sun.proxy.$Proxy322 cannot be cast to org.alfresco.repo.action.executer.LoggingAwareExecuter
at org.alfresco.repo.action.ActionServiceImpl.onLogException(ActionServiceImpl.java:1823)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:442)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "mailAsyncAction1" java.lang.ClassCastException: com.sun.proxy.$Proxy322 cannot be cast to org.alfresco.repo.action.executer.LoggingAwareExecuter
at org.alfresco.repo.action.ActionServiceImpl.onLogException(ActionServiceImpl.java:1823)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:442)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Outcomes