[Tutor] cant send email using python keep getting error
Alex Kleider
akleider at sonic.net
Sat May 9 13:56:04 EDT 2020
On 2020-05-08 23:08, Michael Crooks wrote:
> raise SMTPAuthenticationError(code, resp)
> smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password
> not
> accepted. Learn more at\n5.7.8
> https://support.google.com/mail/?p=BadCredentials m203sm3339543vka.41 -
> gsmtp')
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
Is your goal simply to have a python program send (one or more) emails
via your gmail account?
If so, I might be able to help you.
I've done it but was unhappy because if the recipient was also a gmail
user the email contained an ominous warning about the email's
authenticity.
For this reason I switched to easydns.com. I was able to add a
'Reply-To' header so replies would come to my gmail account and most
users would think the email came from that same gmail account.
Let me know and if you want I'll 'dust off' the code that used gmail,
see if it still works and, if so, share it. (It's all on github[1] but
mixed in with a lot of other stuff the sorting out of which would
probably be daunting!)
[1] https://github.com/alexKleider/Club_Utilities
More information about the Tutor
mailing list