smtplib.py how to ?
Gerrit Holl
gerrit.holl at pobox.com
Sat Nov 6 06:17:11 EST 1999
Colm Rafferty wrote:
> Dear all,
> I cannot insert text into the headers To: From: CC: etc, of the email
> The script below ( the sample in the smtplib.py module) only sends all
> the text in the body of the email.
> How do I insert text in the headers?
What do you mean?
msg = '''From: A friend <gholl at my.org>
To: My brother <hholl at my.org>
Cc: My sister <eholl at my.org>
Subject: this is an example
X-Mailer: a python script
Date: Sat Nov 6 12:15:51 CET 1999
Reply-To: My father <dholl at my.org>
This is the body
'''
regards,
Gerrit.
--
linuxgames.nl.linux.org All about games on Linux in Dutch (under construction).
www.nl.linux.org The Dutch resource for Dutch Linux documentation.
www.nl.linux.org/discoverb Learn foreign words and definitions.
www.nl.linux.org/~gerrit/asperger I'm an Asperger, go here for more info.
www.nl.linux.org/~gerrit About me and pictures of me.
More information about the Python-list
mailing list