SMTPLIB module - how to add subject ?
Tyler Eaves
tyler at tylereaves.com
Sun Sep 16 17:13:13 EDT 2001
A wrote:
> Hi,
> I tried
> 11.11.2 SMTP Example from Python docs.
> Does anyone know how I can add subject to an email send by this example?
> Thank you very much for help
> Ladislav
Any headers needed to be included in the message body.
IE: (Assuming s is the smtpconenction)
s.sendmail('from at foo.com','to at foo.com','Subject: This is the
subject\n\nMessage body starts here.')
More information about the Python-list
mailing list