How To Request Delivery Receipts On Emails

Waldemar Osuch waldemar.osuch at
Wed Mar 8 19:20:19 CET 2006

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 = 'returnto at'
>>> msg['From'] = me
>>> msg['To'] = 'workbee at'
>>> 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: returnto at
To: workbee at
Subject: You better follow up
Disposition-Notification-To: returnto at

Very important email I need confirmation on

More information about the Python-list mailing list