Friday, January 13, 2023
HomeWordPress DevelopmentBBPress not sending notification emails with MailPoet

BBPress not sending notification emails with MailPoet


Bumped into a difficulty that just a few others bumped into as effectively. I am utilizing MailPoet to course of all web site emails, however the BuddyPress notifications stopped working. After digging round I discovered that BuddyPress really sends the notifications to customers by including a number of recipients to the BBC e-mail header. Nevertheless, MailPoet doesn’t assist CC, BCC, or a number of TO recipients. So the easiest way to repair that is to edit the next bbpress plugin file: (Making adjustments on to plugin recordsdata is often suggested in opposition to, so proceed at your individual danger and you should definitely make observe of this edit for future plugin updates)

bbpressincludescommonfunctions

You may be in search of a varibale referred to as $from_email on line 1138 denoted with the remark // Setup “From” e-mail handle , change this line to the next, changing my instance e-mail with the one you’ve gotten set to ship emails with MailPoet:

$from_mail="youremail@yourdomain.com";

The subsequent line of you code it would be best to change is at line 1144 of the identical file. You are in search of a foreach loop that’s denoted with the remark // Loop by way of addresses. Add the next after line 1145: (which begins with $headers[])

wp_mail( $handle, $topic, $message, $headers );

Primarily what we have finished right here is hijack the foreach loop that populates the BBC with all of the subscriber e-mail addresses, and made it ship a singe e-mail for every subscriber.

Hopefully this helps somebody 🙂

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments