SMTP for AEM as Cloud Sandbox | Community
Skip to main content
Level 3
June 23, 2022
Solved

SMTP for AEM as Cloud Sandbox

  • June 23, 2022
  • 2 replies
  • 1498 views

Hello,


I have a sandbox environment where I would like to test some features that require SMTP connection. I saw this article explaining how to set it up https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/networking/examples/email-service.html?lang=en but as far as I understand this requires advanced networking which is not supported in sandbox (see documentation)

 

My question is: how can I set up SMTP for my sandbox env? Is this possible? I tried to connect AEM with AWS SMTP server but when I try to use it I can see the following error:

 

used by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : email-smtp.us-east-1.amazonaws.com:25 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469) [org.apache.commons.email:1.5.0] at org.apache.commons.mail.Email.send(Email.java:1496) [org.apache.commons.email:1.5.0] at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:331) [com.day.cq.cq-mailer:5.4.22] ... 173 common frames omitted Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: email-smtp.us-east-1.amazonaws.com, 25; timeout 60000 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209) [com.sun.mail.javax.mail:1.6.2] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740) [com.sun.mail.javax.mail:1.6.2] at javax.mail.Service.connect(Service.java:388) [com.sun.mail.javax.mail:1.6.2] at javax.mail.Service.connect(Service.java:246) [com.sun.mail.javax.mail:1.6.2] at javax.mail.Service.connect(Service.java:195) [com.sun.mail.javax.mail:1.6.2] at javax.mail.Transport.send0(Transport.java:254) [com.sun.mail.javax.mail:1.6.2] at javax.mail.Transport.send(Transport.java:124) [com.sun.mail.javax.mail:1.6.2] at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459) [org.apache.commons.email:1.5.0] ... 175 common frames omitted Caused by: java.net.SocketTimeoutException: connect timed out

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Tushar_Gupta

SMTP not possible on Cloud Service sandbox.

2 replies

Tushar_GuptaAdobe EmployeeAccepted solution
Adobe Employee
June 23, 2022

SMTP not possible on Cloud Service sandbox.

arunpatidar
Community Advisor
Community Advisor
June 24, 2022
Level 3
June 27, 2022

Hi, I did but the question was about sand box env and it sees that @tushar_gupta has answered the question 🙂