Add a reply_to argument to EmailMessage.

Review Request #13155 — Created July 31, 2023 and submitted — Latest diff uploaded

Information

Djblets
release-4.x

Reviewers

This allows users of EmailMessage to specify an explicit reply_to
value. This will leverage Django's own reply-to handling, ensuring the
correct header is set, and avoid unintentionally duplicating headers
(which could happen if a caller tries to override Reply-To).

As before, this defaults to the From address if not otherwise specified.

Unit tests pass in Djblets and Review Board.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add a reply_to argument to EmailMessage.
This allows users of `EmailMessage` to specify an explicit `reply_to` value. This will leverage Django's own reply-to handling, ensuring the correct header is set, and avoid unintentionally duplicating headers (which could happen if a caller tries to override `Reply-To`). As before, this defaults to the From address if not otherwise specified.
222c480576799f87e28ecc1ce6bede1a73423b6f Christian Hammond
djblets/mail/message.py
djblets/mail/tests.py
Loading...