Better bulk sending #19

Merged
merged 6 commits into from May 31, 2012
Commits on Feb 25, 2012
  1. @mattrobenolt

    Let's fix up the Django demo so it can import the postmark package, a…

    mattrobenolt committed Feb 25, 2012
    …nd strip out your API key
  2. @mattrobenolt
  3. @mattrobenolt

    Support for proper bulk sending from Django's send_mass_mail function

    mattrobenolt committed Feb 25, 2012
    Constructs an actual PMBatchMail object to send instead of many
    individual calls to PMMail.send()
  4. @mattrobenolt

    Split batch requests into chunks of 500 messages since 500 is the max…

    mattrobenolt committed Feb 25, 2012
    … that can be sent at once
  5. @mattrobenolt

    Added a constant for the maximum number of messages to be sent in a b…

    mattrobenolt committed Feb 25, 2012
    …atch request, and added some comments
  6. @mattrobenolt

    Actual filter out messages that don't have recipients

    mattrobenolt committed Feb 25, 2012
    _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.