I am trying to write a program to send an email to my gmail account on Repl.it, but I am getting an error that I don't understand. What is wrong?

Hi there. A post used to be here.

Hi @csquare121

I am not very familiar with python but according to the error message, there is an authentication failure. Try running the same code locally to rule out repl.it as the source of the problem. You might also want to read the article below. I believe it has good information about sending emails in Python.

Did you give permission " less secure app" to gmail

Yeah, I did that already, but it is still not working.

(post deleted by author)

HI @csquare121 !

I edited your post to rewrite the email address so it is no longer clickable.

1 Like

Thank you for doing that!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.