Skip to content

Commit 67e1a49

Browse files
authored
Create buddypress-fix.md
Add doc for buddypress compatibility fix
1 parent 84f0a76 commit 67e1a49

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/buddypress-fix.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Send Buddypress emails using SparkPost
2+
3+
Buddypress plugin implements their own mailer (`bb_mail`) by creating a seperate mailer object of phpMailer class; same way SparkPost plugin does for HTTP Mailer. That's why they don't work nicely with each other out-of-the-box. However, Buddypress developers also made it extremely easy to fallback to default `wp_mail`.
4+
5+
To fix the problem, just add the following snippet in your theme's `functions.php` (feel free to create, if one doesn't exist already).
6+
7+
```
8+
add_filter('bp_email_use_wp_mail', function() {
9+
return true;
10+
});
11+
```

0 commit comments

Comments
 (0)