I am not familiar with Mailgun but a quick looks implies that Mailgun overloads the wp_mail() function. This is likely the reason you see the wp_mail() appears to be overloaded message. This isn’t necessarily a problem as wp_mail() is what WordPress calls a “pluggable” function which means a plugin, or in some cases, plugins, can overload the definition of wp_mail() and change its behavior.
As long as Mailgun doesn’t change the argument list that WordPress defines for wp_mail(), then it should work. At least in theory. If you look at the documentation for wp_mail() you can see that three of the five parameters can accept either a string or an array as an argument. When a plugin overloads wp_mail() it has to be written such that it handles both. Based on reading the Mailgun plugin page, with the number of installations reported, I would expect that it would handle the parameters correctly no matter how they are passed but I haven’t looked at the code to see.
A simple test would be to temporarily disable Mailgun and see if Email Users is working correctly with the default WordPress provided version of wp_mail().
-
This reply was modified 7 years, 4 months ago by
Mike Walsh.
-
This reply was modified 7 years, 4 months ago by
Mike Walsh.
Hi Mike,
I appreciate the thorough response! I’ll dig into it deeper and test disabling the Mailgun plugin once I push to staging (one of the main reasons I’m using Mailgun is so that I can test emails in a dev environment).
Cheers,
Mary-Ann
Why is this marked as resolved? I have the same issue with Mailgun and it is not corrected.
-
This reply was modified 7 years, 4 months ago by
originalfire.
Apologies @originalfire, I’ve marked the topic back to not resolved.
Thanks. I’ve only found 2 plugins that will bulk email users and neither of them currently work. I had to export users and user an external email platform to accomplish this. The client uses Ontraport but Mailchimp or any CRM would work.