Expand my Community achievements bar.

SOLVED

SMPT issue while generating email from Assets. Unable to receive email and it throws below error. " FOR AEM AS CLOUD SERVICE"

Avatar

Level 2

com.day.cq.mailer.MailingException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : ip : port
at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:334)
at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:46)
at com.adobe.cq.dam.download.impl.email.EmailDownloadArtifactsProcess.emailDownloadArtifacts(EmailDownloadArtifactsProcess.java:242)
at com.adobe.cq.dam.download.impl.email.EmailDownloadArtifactsProcess.handleResult(EmailDownloadArtifactsProcess.java:206)
at com.adobe.granite.workflow.core.job.ExternalProcessPollingHandler.process(ExternalProcessPollingHandler.java:131)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : ip : port
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)
at org.apache.commons.mail.Email.send(Email.java:1496)
at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:331)
... 11 more
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: ip : , port ; timeout 60000;
nested exception is:
java.net.SocketTimeoutException: connect timed out
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)
at javax.mail.Service.connect(Service.java:195)
at javax.mail.Transport.send0(Transport.java:254)
at javax.mail.Transport.send(Transport.java:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
... 13 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:608)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:357)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:217)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2175)
... 20 more

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@pathikparmar Hoping you are not facing any issue in generating refresh token,

 

Nitin_laad_0-1649439886400.png

OAuth2 Support for the Mail Service | Adobe Experience Manager

View solution in original post

4 Replies

Avatar

Community Advisor

@pathikparmar Just to check have you configured required(Day CQ Email Service) email service as given in below in below link - 

Configuring Email Notification | Adobe Experience Manager

Avatar

Level 2

@Nitin_laad  We are facing this issue on Cloud Service. On Cloud there is some change for SMTP configuration. Please go through below link. we have all the configuration in place as mentioned. 

https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/networking/examples/e...

 

 

Avatar

Correct answer by
Community Advisor

@pathikparmar Hoping you are not facing any issue in generating refresh token,

 

Nitin_laad_0-1649439886400.png

OAuth2 Support for the Mail Service | Adobe Experience Manager

Avatar

Level 2

Hi,

 

Check the connection from AEM instance to SMTP server using telnet. Make sure to connection is success, it will resolve the issue.