[Fixed]-How to send an email on python without authenticating


You connect to the SMTP server, preferably your own, that doesn’t require authentication or on which you do have an account, then you create an email that has the users e-mail in the from field, and you just send it.

Which lib you will use to do it, smtplib, some Django stuff, or anything else, is irrelevant. If you want to, you can even skip the SMTP server, and simulate one. That way you can deposit the composed mail directly into users POP server inbox. But there is rarely a need for such extremes.


Leave a comment