mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #23910 -- Added reply_to parameter to EmailMessage
Thanks to Berker Peksag and Tim Graham for the review and suggestions.
This commit is contained in:
parent
6b5d82749c
commit
e023ceb453
4 changed files with 52 additions and 4 deletions
|
@ -278,11 +278,18 @@ All parameters are optional and can be set at any time prior to calling the
|
|||
* ``cc``: A list or tuple of recipient addresses used in the "Cc" header
|
||||
when sending the email.
|
||||
|
||||
* ``reply_to``: A list or tuple of recipient addresses used in the "Reply-To"
|
||||
header when sending the email.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
The ``reply_to`` parameter was added.
|
||||
|
||||
For example::
|
||||
|
||||
email = EmailMessage('Hello', 'Body goes here', 'from@example.com',
|
||||
['to1@example.com', 'to2@example.com'], ['bcc@example.com'],
|
||||
headers = {'Reply-To': 'another@example.com'})
|
||||
reply_to=['another@example.com'], headers={'Message-ID': 'foo'})
|
||||
|
||||
The class has the following methods:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue