Tag Info

Hot answers tagged

7

The problem I think the problem here is that you're generating an infinite loop, by placing wp_mail() inside the $phpmailer->action_function callback, that fires after each email. Each time you send an email with wp_mail(), you call wp_mail() again, and again, and again ... etc Possible workaround You should instead use, for example, the following ...


1

I just released a plugin to let users use html templates on WordPress and Im playing right now on the dev version to add a simple text fallback. I did the following and in my tests I only see one boundary added and emails are arriving fine to Hotmail. add_action( 'phpmailer_init', array($this->mailer, 'send_email' ) ); /** * Modify php mailer body with ...


1

You are almost there. You just need to use wp_mail to send emails containing in your array. Here is how you can achieve that using save_post action hook. /** * To send email on updating your event post * * @param int $post_id The post ID. * @param post $post The post object. * @param bool $update Whether this is an existing post being updated or not. ...



Only top voted, non community-wiki answers of a minimum length are eligible