Gmail: 530 5.5.1 Authentication Required. Learn more at
Get to your Gmail account’s security settings and set permissions for “Less secure apps” to Enabled. Worked for me.
Get to your Gmail account’s security settings and set permissions for “Less secure apps” to Enabled. Worked for me.
A relatively recent change in Google’s authentication system means you’re going to have to “allow less secure app access” to your Google account, in order for this to work. In your error, you are recommended to visit this link: https://support.google.com/mail/answer/78754 On that page: Step #2 asks you to try Displaying an Unlock Captcha Step #3 … Read more
Yes, code is perfect. However, you need to allow less secure apps from your google account to send emails. Through this link. Allow less secure apps From your Google Account
to send over gmail, you need to use an encrypted connection. this is not possible with telnet alone, but you can use tools like openssl either connect using the starttls option in openssl to convert the plain connection to encrypted… openssl s_client -starttls smtp -connect smtp.gmail.com:587 -crlf -ign_eof or connect to a ssl sockect directly… … Read more
UPDATE: This feature is no longer supported as of May 30th, 2022. See https://support.google.com/accounts/answer/6010255?hl=en&visit_id=637896899107643254-869975220&p=less-secure-apps&rd=1#zippy=%2Cuse-an-app-password ORIGINAL ANSWER (No longer working): I ran into a similar problem and stumbled on this question. I got an SMTP Authentication Error but my user name / pass was correct. Here is what fixed it. I read this: https://support.google.com/accounts/answer/6010255 In a … Read more
I know this is an older issue, but I recently had the same problem and was having issues resolving it, despite attempting the DisplayUnlockCaptcha fix. This is how I got it alive. Head over to Account Security Settings (https://www.google.com/settings/security/lesssecureapps) and enable “Access for less secure apps”, this allows you to use the google smtp for … Read more
def send_email(user, pwd, recipient, subject, body): import smtplib FROM = user TO = recipient if isinstance(recipient, list) else [recipient] SUBJECT = subject TEXT = body # Prepare actual message message = “””From: %s\nTo: %s\nSubject: %s\n\n%s “”” % (FROM, “, “.join(TO), SUBJECT, TEXT) try: server = smtplib.SMTP(“smtp.gmail.com”, 587) server.ehlo() server.starttls() server.login(user, pwd) server.sendmail(FROM, TO, message) server.close() … Read more