Send HTML e-mail in Python?

Larry Bates lbates at
Wed Nov 3 17:40:46 CET 2004

Google is your friend: python send htlm email

turns up a recipe at ASPN:

Larry Bates

Max wrote:
> I am looking for some simple example code on generating SMTP e-mail
> messages in Python. I have a script that sends system reports to me at
> a central e-mail address, and it works fine using smtplib with plain
> text messages. I would like to enhance this script to send HTML
> formatted messages instead.
> Simply sending a text message with HTML tags does not work. The e-mail
> client displays the message as plain text with visible <tags>.

More information about the Python-list mailing list