Skip to content
Sign upLog in
← Back to Community

I keep getting this error using smtplib?

Profile icon
mil510774

I'm trying to use this simple script to send emails but I keep getting this error, can anyone help me out.

image

Voters
Profile icon
CarlosQuinones3
Profile icon
mil510774
Comments
hotnewtop
Profile icon
MocaCDeveloper

Maybe this documentation will help?

Try adding smtp.quit() at the end?

Profile icon
mil510774

@MocaCDeveloper
I already tried that and unfortunately no luck

Profile icon
Coder100

Have you allowed less secure apps for your gmail account?
click here to learn more.
Good luck!

BTW, in your repl, the email and password does not appear to be even close to real. Make sure they are legitimate keys, and if you need, use a private repl :)

Profile icon
mil510774

@Coder100
Yea I have a private repl with my actual keys, I just didn't share that one. I have less secure apps allowed. I'm just confused as to why I am still getting these errors.

Profile icon
JaredLenton

@mil510774

Still getting this error for me too a year later :(