Support

Home Forums Custom Files Add-on (EE3) Useful code: Send bulk email to attendees using mandrill

Useful code: Send bulk email to attendees using mandrill

Posted: December 16, 2013 at 11:58 pm

Viewing 2 reply threads


Nicolas Alberto

December 16, 2013 at 11:58 pm

Hi,
I have had many issues because of timeout in sending emails to event attendees.
I can now send 800 emails in one api call using the solution below and no timeout in my application.

My solution was to use mandrill to send all email in one api call.
You just need to create an account with Mandrill (part of mailchimp).
You will be allowed to send 12 000 emails per month for free.

You also need to create an email template in Mandrill. That will also make all your email look nice (html) and have link tracking capabilities.

Then install the wpMandrill addon in wp and use the following custom function in your custom_function.php file in eventespresso (change the parameters as needed)

All your worpress email will then be sent through mandrill.

https://gist.github.com/lorenzocaum/db96c5051d036fcbd7cc65889eba732a

I hope this will be useful for someone.


Nicolas Alberto

December 17, 2013 at 12:00 am

This reply has been marked as private.


Dean

December 17, 2013 at 12:37 am

Thanks for providing your solution!

Viewing 2 reply threads

The support post ‘Useful code: Send bulk email to attendees using mandrill’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso