неділя, 1 лютого 2015 р.

How to send email with Python help. Smtplib

Lets suppose that you already had working smtp server (like Postfix or Exim) and it works on 25 port. You want to send email using your Python script. I hope this article will help you to do that.

At first make sure that you server can send emails.  Send simple email using bash or shell:

# mail -s “Hello world” test@example.com

And check mailbox test@example.com. Ok, I hope that everything is fine.

Now open your favourite editor and pass there text like that: