Subject line with smtplib.sendmail()
Fredrik Lundh
fredrik at pythonware.com
Tue Mar 20 11:07:32 EDT 2007
Boudreau, Emile wrote:
> I'm trying to send mail from my server to my machine with test
> results. I can send the email no problem however, the email doesn't
> contain a "recipient list" or a "subject line". I was wondering how
> would I go about getting the information on the actual "To" and
> "Subject" lines so that I know to whom the email was sent and the
> subject line without opening the email?
you have to add the headers yourself. see the example in the library
reference, or this FAQ entry:
http://effbot.org/pyfaq/how-do-i-send-mail-from-a-python-script
</F>
More information about the Python-list
mailing list