Prep for 0.8 release

This commit is contained in:
medmunds
2014-01-12 11:14:33 -08:00
parent 3a080bf557
commit 881b4842ff
3 changed files with 10 additions and 2 deletions

View File

@@ -11,3 +11,4 @@ Jared Morse
peillis peillis
José Padilla José Padilla
Jens Alm Jens Alm
Eric Hennings

View File

@@ -3,6 +3,8 @@ Release Notes
Version 0.8 (development): Version 0.8 (development):
* Expose :ref:`mandrill_response` on sent messages
Version 0.7: Version 0.7:

View File

@@ -276,13 +276,14 @@ see :class:`DjrillMandrillFeatureTests` in :file:`tests/test_mandrill_send.py` f
.. _mandrill-response: .. _mandrill-response:
Mandrill Response Mandrill Response
--------------------------------- -----------------
A ``mandrill_response`` property is added to each :class:`~django.core.mail.EmailMessage` that you A ``mandrill_response`` property is added to each :class:`~django.core.mail.EmailMessage` that you
send. This allows you to retrieve message ids, initial status information and more. send. This allows you to retrieve message ids, initial status information and more.
For an EmailMessage that is successfully sent to one or more email addresses, ``mandrill_response`` will For an EmailMessage that is successfully sent to one or more email addresses, ``mandrill_response`` will
be set to a ``list`` of ``dict``, where each entry has info for one email address. See the Mandrill docs for the be set to a ``list`` of ``dict``, where each entry has info for one email address. See the Mandrill docs for the
/messages/send api for full details. `messages/send API <https://mandrillapp.com/api/docs/messages.html#method=send>`_ for full details.
For example, to get the Mandrill message id for a sent email you might do this:: For example, to get the Mandrill message id for a sent email you might do this::
@@ -304,6 +305,10 @@ For this example, msg.mandrill_response might look like this::
If an error is returned by Mandrill while sending the message then ``mandrill_response`` will be set to None. If an error is returned by Mandrill while sending the message then ``mandrill_response`` will be set to None.
.. versionadded:: 0.8
mandrill_response available for sent messages
.. _djrill-exceptions: .. _djrill-exceptions:
Exceptions Exceptions