summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMartin Blech <martinblech@gmail.com>2014-11-25 20:05:44 -0300
committerTim Graham <timograham@gmail.com>2014-11-28 06:00:06 -0500
commite023ceb453c02e271d00f9ac25e154b7be712bb0 (patch)
treef884b6a0bc57c16ec6d3665f419a2043eda153b2 /docs
parent6b5d82749c57a1aae8c9e81d2b85b2cadb9ef933 (diff)
Fixed #23910 -- Added reply_to parameter to EmailMessage
Thanks to Berker Peksag and Tim Graham for the review and suggestions.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.txt3
-rw-r--r--docs/topics/email.txt9
2 files changed, 11 insertions, 1 deletions
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index ffdd33c12f..fb4e44576c 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -210,6 +210,9 @@ Email
* The SMTP :class:`~django.core.mail.backends.smtp.EmailBackend` now supports
setting the ``timeout`` parameter with the :setting:`EMAIL_TIMEOUT` setting.
+* :class:`~django.core.mail.EmailMessage` and ``EmailMultiAlternatives`` now
+ support the ``reply_to`` parameter.
+
File Storage
^^^^^^^^^^^^
diff --git a/docs/topics/email.txt b/docs/topics/email.txt
index 7333ae7110..aabe66085e 100644
--- a/docs/topics/email.txt
+++ b/docs/topics/email.txt
@@ -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: