Gregory Piñero wrote:

> Does anyone know how to program a Python script to send out emails
> with a request delivery receipt?  Is it something I can build into the
> email message via the mime stuff?

You have to add 'Disposition-Notification-To' header

>>> from email.MIMEText import MIMEText
>>> msg = MIMEText('Very important email I need confirmation on')
>>> me = '[EMAIL PROTECTED]'
>>> msg['From'] = me
>>> msg['To'] = '[EMAIL PROTECTED]'
>>> msg['Subject'] = 'You better follow up'
>>> msg['Disposition-Notification-To'] = me
print msg.as_string()
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: You better follow up
Disposition-Notification-To: [EMAIL PROTECTED]

Very important email I need confirmation on

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to