Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

SMTP for AEM as Cloud Sandbox

Avatar

Level 3

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/e... 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

 

1 Accepted Solution

Avatar

Correct answer by
Level 7

SMTP not possible on Cloud Service sandbox.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 7

SMTP not possible on Cloud Service sandbox.

Avatar

Level 3

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