WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
[resolved] Asynchronous requests? (3 posts)

  1. Janneke Van Dorpe
    Member
    Posted 8 months ago #

    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/

  2. MC_Will
    Member
    Plugin Author

    Posted 8 months ago #

    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!

  3. Janneke Van Dorpe
    Member
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags