SMTP mail configuration using an API key rather than a username and password. | Community
Skip to main content
Level 3
January 29, 2024
Solved

SMTP mail configuration using an API key rather than a username and password.

  • January 29, 2024
  • 3 replies
  • 2607 views

Hi Community,

 

Now Currently, I am using AEM default SMTP mail configuration.

 

{
"smtp.host": "$[env:AEM_PROXY_HOST;default=proxy.tunnel]",
"smtp.port": "30465",
"smtp.user": "xyz",
"smtp.password": "123",
"from.address": "",
"smtp.ssl": true,
"smtp.starttls": false,
"smtp.requiretls": false,
"debug.email": false
}

 

But now I want to change the SMTP mail configuration using an API key rather than a username and password. using it as an AEM Cloud manager.

Is it possible or Can I do that?

 

 

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 narendragandhi

Hi @vishal_s01 

 

This blog provides details on how the SMTP Oauth2 can be configured - https://aemconcepts.com/home/smtp-integration-with-aemaacs-over-oauth-2-0/

 

I hope this helps. Please let us know for any questions.

 

Thanks

Narendra

3 replies

kaikubad
Community Advisor
Community Advisor
January 29, 2024

Yes it is possible. For few of the connections only host and port is enough and we can send emails without username and password as well.

On our system we have whitelisted the aem server on our end and sending email without any credential only from whitelisted domain.

Go to http://localhost:4502/system/console/configMgr and find Day CQ Mail Service

 We are not using any credential hrere

 

Level 3
January 29, 2024

Hi @kaikubad,

But now here I'd like to set this up using an API key rather than a username password as it is.

means I want to add an API key here. Where do I need to change in the current configuration?

kaikubad
Community Advisor
Community Advisor
January 29, 2024

No ootb functionality for this. But recently they added oauth for mail service. You can check this link
https://experienceleague.adobe.com/docs/experience-manager-65/content/sites/administering/operations/notification.html?lang=en

 

another way could be overriding the Day CQ Mail service as your need.

narendragandhi
Community Advisor
narendragandhiCommunity AdvisorAccepted solution
Community Advisor
January 29, 2024

Hi @vishal_s01 

 

This blog provides details on how the SMTP Oauth2 can be configured - https://aemconcepts.com/home/smtp-integration-with-aemaacs-over-oauth-2-0/

 

I hope this helps. Please let us know for any questions.

 

Thanks

Narendra

Level 3
February 2, 2024

@narendragandhi Thanks for the help.

kautuk_sahni
Community Manager
Community Manager
February 2, 2024

@vishal_s01 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni