Hi - I have a question about an issue I've recently run into with Django. 
It relates to creating a separate `Return Path` and `From` header in an 
email using Django.

The current solution is undocumented, but discussed 
here: https://code.djangoproject.com/ticket/9214

To create a separate `Return Path` and `From` header in an email, one puts 
the `Return Path` in the `from_email` parameter, and creates a separate 
`From` header in the `headers` parameter. The current Django code can be 
seen 
here: 
https://github.com/django/django/blob/a38ae914d89809aed6d79337b74a8b31b6d3849a/django/core/mail/message.py#L256

My question is around the fact that this seems to be a bit of a hack. Does 
it make more sense to create a PR to document this "feature" in the docs, 
or would it make more sense to create a PR to deprecate the old way of 
doing things in favor of a separate from_email and return_path parameter? 
Or something else?

I'd love to contribute one or the other, to save others time in having to 
dig through and find a nine year old ticket to figure out how to set the 
`Return Path` parameter. I thought to post here before creating an issue in 
the Issue Tracker because I'm not sure whether the current implementation 
would be considered best practice or not. Thanks for any suggestions!

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/a9457a83-a6ad-4384-9cf7-99108725985a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to