Tag Info

New answers tagged

2

Since wp_mail is pluggable, we can selectively override it. I run the following code in my general functionality plugin: /** * Email Async. * * We override the wp_mail function for all non-cron requests with a function that simply * captures the arguments and schedules a cron event to send the email. */ if ( ! defined( 'DOING_CRON' ) || ( defined( ...


0

Thanks guys! I was debugging an contact-form-7 error. This helped me a lot. It appeared that the sender was a (persons) name and not an emailadress, alltough we were using the wpmail() -> mail() it did sent out the mail but reported a false to the CF-7 plugin, showing an error to the visitor who filled in the form.



Top 50 recent answers are included