Unable to configure SMTP : SMTP connection failed
Error :
Error in AutomationEdge Logs :
2021-02-02 16:50:10 IST (+05:30) https-jsse-nio-443-exec-42 ERROR AEEmailServiceImpl:466 - SMTP connection failed
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException.
Resolution :
Please check the below setting in your google account before configuring SMTP-
Turning on 'less secure apps' settings as mailbox user-
- Go to your (Google Account).
- On the left navigation panel, click Security.
- On the bottom of the page, in the Less secure app access panel, click
Turn on
access.
- Click the Save button.
Unlock Captcha-
- If there is still a problem, Open Gmail from a browser and only sign into the account you’re trying to add. Be sure to be signed out of all your other accounts.
- Go to this link: https://accounts.google.com/DisplayUnlockCaptcha and click on Continue.