I am facing issues while sending email. I have configured smtp server correctly.
please refer logs.
I am following this tutorial to implement it.
https://sourcedcode.com/blog/aem/send-out-emails-with-aem-servlet
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465
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.24]
... 188 common frames omitted
Caused by: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. For more information, go to_535 5.7.8 https://support.google.com/mail/?p=BadCredentials d9443c01a7336-205528a18c7sm43112885ad.193 - gsmtp_
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:965) [com.sun.mail.javax.mail:1.6.2]
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:876) [com.sun.mail.javax.mail:1.6.2]
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:780) [com.sun.mail.javax.mail:1.6.2]
at javax.mail.Service.connect(Service.java:388) [com.sun.mail.javax.mail:1.6.2]
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
HI @NITINTR2 ,
Authentication failed could occur due to many reasons. Some of them like username password incorrect, smtp user is disabled or smtp server authentication turn off . If you are sure about each instance of your email client has accurate smtp config then check with SMTP mail server. You can check in SMTP logs as what is causing this issue.
As preliminary investigation try to focus on the config which I've mentioned above, most likely username and password.
You can go through below document in detail:
https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/networking/example...
-Tarun
HI @NITINTR2 ,
Authentication failed could occur due to many reasons. Some of them like username password incorrect, smtp user is disabled or smtp server authentication turn off . If you are sure about each instance of your email client has accurate smtp config then check with SMTP mail server. You can check in SMTP logs as what is causing this issue.
As preliminary investigation try to focus on the config which I've mentioned above, most likely username and password.
You can go through below document in detail:
https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/networking/example...
-Tarun
@NITINTR2 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies