Support » Plugin: wpMandrill » Asynchronous requests?

  • Resolved Ella

    (@ellatrix)


    Thanks for this wonderful plugin!

    I’d like to send out my emails asynchronously, but it seems that this option falls out of the $message variable that can be modified with mandrill_payload. Could a filter for this be added to the plugin? Currently there’s no other way than to modify the code.

    The reason I’d like to send them asynchronously is because I’d like to send out 50 emails or so at once, but it would take too long to do that. Ideally I’d like to make just one request, but I don’t think that’s currently possible? I don’t want to send one message to multiple recipients, I’d like the send out a unique message to each. This is useful when you’re providing links to unsubscribe.

    Thanks a lot!

    http://wordpress.org/plugins/wpmandrill/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MC_Will

    (@mc_will)

    Hi Janneke,

    I still think the best option for you will be to send one message to multiple recipients, as you mentioned.

    First of all, if a message is sent to more than 10 recipients, it is always sent asynchronously by Mandrill so just one call and boom, you’re done.

    Next in order, unique content for every recipient. Here you have a few options too. If every email is completely different, you can create a very basic template and, using ‘merge vars’, insert the content you already have for every recipient. That will make the payload a little bit larger but it will work.

    My preferred option is to identify common parts in all those emails, replacing unique parts by global or user merge vars (depending on the case) and create a template with this. Then, send the payload only with the unique values for each recipient along with any global merge vars if needed.

    I hope it helps!

    Thread Starter Ella

    (@ellatrix)

    Thanks a lot! Those merge_vars were exactly what I was looking for!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Asynchronous requests?’ is closed to new replies.