medmunds
8433e6d660
Clean up all imports
...
* Use relative imports within djrill package
* Standardize ordering
* Remove absolute_import (it's standard in all
python versions we now support)
2015-11-30 17:33:08 -08:00
medmunds
942a6df8c3
Drop unintended json date encoding
2015-11-29 14:42:12 -08:00
William Hector
7179734a08
Allow global_merge_vars to be merged in with the per message dict, with keys in the latter taking precedent.
...
Update the docs accordingly.
2015-07-14 05:57:12 +01:00
William Hector
883b23362c
Allow Mandrill specific options to be set globally in the settings file.
...
This is useful to set options such as tracking_domain etc per instance when using subaccounts with Mandrill.
2015-07-12 01:19:59 +01:00
medmunds
da260de1a0
Drop support for Django 1.3, Python 2.6 and 3.2.
...
* Shrink the Travis test matrix
* Remove a lot of backported test code
* Update requirements in setup.py
* Update docs
Closes #79
2015-05-14 11:39:57 -07:00
medmunds
00ddd2f4f6
Improve MandrillAPIError.__str__
...
* Include formatted response from Mandrill API (if any)
* Clean up recipient address(es)
2015-05-13 15:43:54 -07:00
medmunds
cc56b96efa
Improve and document JSON serialization for Mandrill API
...
* Add some context to exceptions on unserializable
values (addresses #89 ).
* Document need to format merge data
(into something JSON-serializable).
* Add RemovedInDjrill2 DeprecationWarning.
* Deprecate blanket date/datetime serialization.
2015-05-12 13:29:52 -07:00
medmunds
6891b0de91
Fix tests on Python 2.6
2015-02-25 21:13:16 -08:00
medmunds
bbc2e06091
Support Django 1.8 reply_to param.
2015-02-25 16:30:02 -08:00
medmunds
76e29c0845
Support merge_language option.
...
Closes #84 .
2015-01-16 13:48:39 -08:00
medmunds
11961b57e5
Use real Response object in DjrillBackendMockAPITestCase tests.
...
(Improves testing accuracy around API response encoding.)
* Add `six` as test dependency (six.BytesIO, six.b)
* Change MockResponse content to bytes (because HTTP responses
are bytes, not strings)
2015-01-16 13:18:17 -08:00
winhamwr
f2a08894fa
Fixed python 3.2 compatibility.
2014-04-23 18:37:46 -04:00
winhamwr
70dc022f77
Handle unicode attachment content in both python 2.X and python3.
2014-04-23 16:59:48 -04:00
winhamwr
4e0a0cca71
Added failing test showing that unicode attachments cause an error
2014-04-23 15:52:05 -04:00
medmunds
8815601b65
Use override_settings rather than mucking with settings in tests
...
Second attempt to address possible test sequencing issue around tests that alter settings. (Failures in Travis tests not reproducible locally.)
Back-ports override_settings from Django 1.4 for compatibility with Django 1.3.
2014-04-20 16:04:31 -07:00
medmunds
d7c06bb576
Better handling for cc and bcc recipients.
...
Fixes #59 .
2014-01-25 12:35:23 -08:00
medmunds
1e44392b13
Allow all extra message headers in send.
...
Mandrill has relaxed previous API restrictions on headers.
Fixes #58 .
2014-01-25 11:58:12 -08:00
Eric Hennings
3a6f3ec4c4
Fix tests broken for python 3.0 (no u’strings’)
2014-01-06 08:33:36 -08:00
Eric Hennings
e1c78ec197
Add the Mandrill send API response to EmailMessage as a property, mandrill_response, when a message is sent. For errors, set mandrill_response to None. Add tests & docs.
2013-12-22 14:12:57 -08:00
medmunds
12426204a5
Support important, view_content_link, return_path_domain, subaccount.
...
Closes #49 .
2013-10-19 13:24:56 -07:00
medmunds
b26ba42e77
Support async, ip_pool, and send_at.
...
Closes #40 .
Closes #48 .
2013-10-19 13:09:05 -07:00
crccheck
f5465700a8
Add: failing test for html only messages
2013-09-26 15:31:28 -05:00
medmunds
717e048365
Add Mandrill send options auto_html, tracking_domain, signing_domain
2013-03-27 11:08:04 -07:00
medmunds
13c6125bda
Support Mandrill inline_css sending option
2013-03-05 13:57:51 -08:00
medmunds
09de5faebe
Support embedded images.
...
Treat image attachments with a Content-ID header as embedded, rather than ordinary attachments. (Rationale is that you must set the content-id to be able to refer to the image within your html, so that's a reasonable indicator to handle it as embedded.)
2013-03-01 13:58:07 -08:00
medmunds
92d413f5ae
Don't filter attachment types
...
Mandrill dropped filtering on attachment mimetypes, so stop enforcing this in Djrill.
Fixes #26
2013-02-28 17:47:47 -08:00
medmunds
ed3249cede
Correct name/content lists for template_content, merge_vars, global_merge_vars.
...
Fixes #24 .
2013-01-13 08:16:40 -08:00
medmunds
860ebcdc44
Python 3.2 (but not 3.3) b64decode requires bytes not str
2013-01-12 14:00:34 -08:00
medmunds
ac0614a633
More Python 3.2 fixes - attachment encoding
2013-01-12 13:32:57 -08:00
medmunds
8de6b218b9
Handle bcc as Mandrill bcc_address, rather than additional to address
2013-01-12 10:26:42 -08:00
medmunds
ad4b9f38ff
Raise NotSupportedByMandrillError for unsupported attachment mimetypes.
2013-01-11 17:26:09 -08:00
medmunds
18d27fdb21
Exception cleanup
...
Introduce djrill.NotSupportedByMandrillError for unsupported functionality (previously used generic ValueError).
Change to djrill.MandrillAPIError, derived from requests.HTTPError, for API error responses (previously used djrill.mail.backends.djrill.DjrillBackendHTTPError -- retained as equivalent for backwards compatibility).
2013-01-11 16:59:42 -08:00
medmunds
207e94e6d0
Tests: add ability to check which Mandrill API endpoint was used.
...
Add DjrillBackendMockAPITestCase.assert_mandrill_called; use it in representative backend test cases.
(Also make get_api_call_data work with various ways of calling requests.post.)
2013-01-11 12:44:06 -08:00
medmunds
5b4f4c12cb
Support sending attachments
2013-01-03 13:52:41 -08:00
medmunds
d1b0e0a574
Tests: break apart tests.py into tests directory
2013-01-03 10:51:07 -08:00