smtplib - missing message

Mathias Waack M.Waack at gmx.de
Fri May 14 11:11:50 EDT 2004


Peter Hansen wrote:

> msg = "Subject: test\n\nPlease display me."

Better use the mime classes from package "email":

msg = MIMEText("Please display me.").as_string()

Mathias



More information about the Python-list mailing list