SMTP set up On AEM Production Instance | Community
Skip to main content
Level 3
July 6, 2023
Solved

SMTP set up On AEM Production Instance

  • July 6, 2023
  • 3 replies
  • 1955 views

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.

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 iamnjain

Hi @prashanthal 

 

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!

3 replies

aanchal-sikka
Community Advisor
Community Advisor
July 6, 2023

hello @prashanthal 

 

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
iamnjain
Community Advisor
iamnjainCommunity AdvisorAccepted solution
Community Advisor
July 6, 2023

Hi @prashanthal 

 

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!

Tanika02
Level 7
July 6, 2023

Hello @prashanthal - 

 

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.html?lang=en 

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/email-notifications-in-workflow/td-p/567789 

 

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

Sudheer_Sundalam
Community Advisor
Community Advisor
July 6, 2023

@prashanthal ,

 

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.

 

 

Level 3
July 13, 2023

@tanika02 @iamnjain @aanchal-sikka @sudheer_sundalam 

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