When attempting to send an email (using Gmail SMTP) from my web application I get error message about failed authentication. This is a result of 'Less secure app access' feature being turned off in Gmail security settings. I was able to send emails via my local dev environment once I turned this feature on. However when I deployed my application to production server the issue repeated and this time turning 'Less secure app access' on does not work anymore - even can not send emails via dev environment anymore. I noticed that the feature gets turned off after some time (several minutes/an hour/next day) even when I specifically turn it on.

migrated from superuser.com Mar 5 at 19:14

This question came from our site for computer enthusiasts and power users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy