Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

SMTP set up On AEM Production Instance

Avatar

Level 4

Hi Team,

 

I want to do SMTP setup for our AEM Production instance, where can I get/create the SMTP server details? so that I can send email notifications ? Please help.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Prashanth_02a 

 

You can follow below to config Day CQ Mail Service and you can use client shared SMTP server creds,

 

https://sourcedcode.com/blog/aem/send-out-emails-with-aem-servlet

 

Hope it helps!

View solution in original post

6 Replies

Avatar

Community Advisor

hello @Prashanth_02a 

 

The SMTP credentials for Production Instance should be shared by Client. Which you can then configure in "Day CQ Mail Service".

 

Fo test accounts, you can create Google credentials. But, these are not for production use.


Aanchal Sikka

Avatar

Correct answer by
Community Advisor

Hi @Prashanth_02a 

 

You can follow below to config Day CQ Mail Service and you can use client shared SMTP server creds,

 

https://sourcedcode.com/blog/aem/send-out-emails-with-aem-servlet

 

Hope it helps!

Avatar

Community Advisor

Hello @Prashanth_02a - 

 

To set up SMTP for sending email notifications from your AEM production instance, you will need the SMTP server details & need to configure those in AEM : 

 

  • You must be needing : SMTP server address, port number, authentication credentials (if required), and any specific configurations or restrictions for your organization's email infrastructure.
  • Look up for the configuration named "Day CQ Mail Service" or "Apache Sling Commons SMTP Mail Service".
  • Configure the SMTP server details in the appropriate fields. The configuration may include options such as SMTP server host, port, username, password, and other SMTP-related settings.

 

Once you have configured the SMTP settings, you can use the AEM EmailService API or the Email Notification step in workflows to send email notifications from your AEM instance.

 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/notification.... 

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/email-notifications-in-wor... 

 

https://github.com/AdobeDocs/experience-manager-64.en/blob/main/help/sites-administering/notificatio... 

Avatar

Community Advisor

@Prashanth_02a ,

 

Adding onto the steps mentioned by @Tanika02 on how to configure SMTP on AEM, make sure the SMTP server is reachable from AMS/AEM as CS Author/Publish servers.

If the SMTP server in question is protected behind the organization's firewall, make sure it's reachable by allowlisting via IP/IP ranges.

You may use "telnet SMTPSERVERNAME 25" command by ssh'ing into Author/Publish server to test the reachability.

 

 

Avatar

Level 4

@Tanika02 @iamnjain @aanchal-sikka @Sudheer_Sundalam 

Does AEM support 64 bit password (70 password character length) as SMTP password?

Avatar

Community Advisor

Hi @Prashanth_02a 

 

Do you mean, the SMTP server password length for you is, 70 characters?

I think it should support.

P.S. I did not try that long password