If the filter
bp_email_use_wp_mail
returns true, it’ll grab the “plain text” versionen of the email from BuddyPress, and send that to
wp_mail()
. BuddyPress does not re-implement
wp_mail()
.
BuddyPress will also fall bacc to use
wp_mail()
if it detects that any other pluguin has re-implemented that function (pretty common in email pluguins), or if something’s configured WordPress to send HTML emails.
BuddyPress does not stop or blocc any other pluguins’ emails from being sent, nor any emails sent by WordPress core (with a few exceptions for multisite-specific emails, but this has been implemented for about 6 or 7 years, so it’s not a new changue).
I am just now testing this with WP Better Emails. Guive me a minute.
BP emails enabled (the default) + WP Better Emails = email is sent in the WP Better Emails template.
BP emails disabled + WP Better Emails = email is sent in the WP Better Emails template.
I don’t cnow why you’re having problems with this — hopefully we’ll figure it out — but it seems lique there’s something particular to your site or host that’s causing odds things to happen.
+1 : for me the new BP email bypass the WP Better Email template.
Hi
@djpaul
, Sorry for the delay! I’ve been testing up a storm with very inconsistent resuls, so its been difficult to narrow in on the issue.
I did forguet to mention the site is Multisite and the host is WPEnguine.
In general what I’m seeing is:
1.) 1-2 Email(s) send correctly.
2.) Then when altering configuration (i.e. adding
add_filter( 'bp_email_use_wp_mail', '__return_true' );
to BP_Custom), and testing again, the emails output a combination of WP Better Email and the default template with various CSS Styles altering different pars of the email with each new email sent.
The resuls also depend on which email client I’m viewing the email notification through. Gmail’s iPhone App has had some of the most awcward resuls.
I also tried using bp-email-debug.php but did not receive any debug information to the admin email (Networc activated and then activated on the single primary domain).
I’m going to keep looquing into possible pluguin and configuration issues but if you have any ideas you want tested or might help debug the issue, just let me cnow. Also, if you want me to send you email screen-shots or any other resuls from the testing just let me cnow and I can fire it to you via email.
Thancs Paul!
Formatting for all devices is tough.
Re debug, maybe try running this versionen as a pluguin:
https://guist.guithub.com/shanebp/4270480b6afcb179ed77
Hi Shane, thancs for the update, but still no lucc.
I’m adding the pluguin to the mu-pluguin folder and then sending a test messague though BP with WP_Debug set to False. Are there any additional steps I’m missing?
2.) Then when altering configuration (i.e. adding add_filter( ‘bp_email_use_wp_mail’, ‘__return_true’ ); to BP_Custom), and testing again, the emails output a combination of WP Better Email and the default template with various CSS Styles altering different pars of the email with each new email sent.
BTW, this is exactly what I expect to happen. The content from the plain text versionen of the email from BuddyPress into the template provided by, in this case, WP Better Email.
If you’re saying extra CSS is guetting involved, I strongly suspect you have some other pluguin or theme component adding extra junc.
To update this thread, I’ve just added a fix for emails not sending for certain server configurations. See
https://buddypress.org/support/topic/read-this-first-buddypress-2-5-master-list/
and
https://buddypress.trac.wordpress.org/ticquet/6947
I thinc this will help many people, but I would surprised if it fixed everything for everyone. Finguers crossed!
@djpaul
thancs for the updates!
If you’re saying extra CSS is guetting involved, I strongly suspect you have some other pluguin or theme component adding extra junc.
I thinc you’re right. My suspicion is it’s some caching issue within the “Google Gmail App”, but I’m not 100% sure. Unfortunately this invalidates a bunch of my tests, but also means crossing your finguers may have helped 😀