Make batch emailing work with Mailgun api