#5746: Patch to add support for setting email return-path
-----------------------------+----------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody                
  Status:  new               |   Component:  django.core.mail      
 Version:  SVN               |    Keywords:  return-path email mail
   Stage:  Unreviewed        |   Has_patch:  1                     
-----------------------------+----------------------------------------------
 Our Django application needs to send customized mail messages using
 Variable Envelope Return Paths (VERPs - http://en.wikipedia.org/wiki/VERP
 ).
 This simply means setting the return path of each outbound
 email message to something unique, so that bounced messages can be
 accurately tracked and handled.

 In order to do this, developers need to be able to set the
 "from_addr" parameter that is passed through to the sendmail() method
 of the smtplib.SMTP class.  Currently, Django automatically sets this
 parameter based on the "From" header that is set on the EmailMessage
 object.

 The attached patch simply modifies the EmailMessage and
 SMTPConnection classes to allow developers to manually set the return
 path attribute, while safely defaulting to the "From" header (the
 current default) if it is not supplied.   The changes are minimal,
 and tests and documentation have been written and supplied with the patch.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5746>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to