


Dear folks ,
We are using default mail service to send emails but we are facing issue to send emails. We have used below OSGI configuration and from local system we can send email but not from AEM cloud.
OSGI Config :
{
"smtp.host": "$[env:AEM_PROXY_HOST;default=proxy.tunnel]",
"smtp.port": "30587",
"smtp.user": "$[env:EMAIL_USERNAME;default=1ec6dcbd9bf44864a6d506ae22d48026]",
"smtp.password": "$[secret:EMAIL_PASSWORD]",
"from.address": "abcd@xyz.com",
"smtp.starttls": true,
"smtp.requiretls": false,
"debug.email": false,
"oauth.flow": false
}
ERROR :
Solved! Go to Solution.
Views
Replies
Sign in to like this content
Total Likes
@kdatta I tried below config and it worked for me in AEMaaCS
{
"debug.email": false,
"smtp.user": "$[secret:smtpuser]",
"smtp.password": "$[secret:smtppassword]",
"smtp.port": 465,
"smtp.ssl": true,
"smtp.starttls": true,
"smtp.host": "in.mailjet.com",
"from.address": "noreply@domain.com"
}
Their is a flexiablity in AEMaaCS that you can configure the smtp username and password from the environment variable as well
Hi @Jagadeesh_Prakash ,
I tried with same config only as mentioned by you , only difference is
smtp.ssl = false
as I am using outlook server . The problem was with port , by default 587 port is disabled , we need to enable that using advance networking.