…all _check_values for each PMMail object before attempting to send
Fix batch mail sending.
Pull request #17 introduced a bug by namespacing interal properties with `_PMMail__*` instead of `_PMBatchMail__*`. This commit fixes the typo so that batch mail sending works.
The batch mailer doesn't use the `sender` property, so no need to pass it in as a kwarg or do the complicated `_PMBatchMail__sender` dance.
Added api_key and sender properties in PMBatchMail
Better bulk sending, HTTPS, batching, filtering, utility methods for cleaner code.
Better hierarchy for importing JSON. Simplejson is faster than the builtin "json" due to the compiled C _speedups module.
…ilt in "json" due to the compiled C _speedups module.
_build_message will return False if no recipients are specified, so we want to filter those out of the bulk messages and bail before even attempting to send.
…atch request, and added some comments
… that can be sent at once
Constructs an actual PMBatchMail object to send instead of many individual calls to PMMail.send()
…nd strip out your API key
Give priority to api_key passed through the constructor of the EmailBackend
…atibility Fix django ugettextlazy incompatibility
Adding support for bcc
This reverts commit 15bc121.
…ld take priority over the global settings.POSTMARK_API_KEY. Without this, you are not able to override the global variable for a one-off call.
Added the PMBatchMail object that expects a messages argument array of PMMail objects.