how to ?

Colm Rafferty cgr at
Fri Nov 5 20:02:44 EST 1999

Dear all,
I cannot insert text into  the headers To: From: CC: etc, of the email
The script below ( the sample in the module) only sends all
the text in the body of the email.

How do I insert text in the headers?

import smtplib
tolist=["cgr at","c.rafferty at","cgr at"]
msg = '''
From: test at
Subject: testin'...

This is a first test '''

s.sendmail("me at",tolist,msg)


Thanks for any help

Colm Rafferty

More information about the Python-list mailing list