Comments (9)
So it turns out, there is a very quick & easy solution. buddypress developers already made it possible to ignore their own implementation of wp_mail
and fallback to wordpress's default wp_mail
(which will allow sparkpost plugin to do its magics). If you add the following snippet (functions.php
of your theme or similar), it should just work.
add_filter('bp_email_use_wp_mail', function() {
return true;
});
from wordpress-sparkpost.
Thank you so much for investigating this for me.
This is working great!
All the email is sent over sparkpost now.
from wordpress-sparkpost.
@rajumsys This is perfect - I looked for 3 days on this solution, you are magic!
from wordpress-sparkpost.
This seems to be an incompatibility with the way BuddyPress handles emails, and SparkPost implements it's SMTP settings.
What SparkPost does is extend the PHPMailer class and then overwrite a global $phpmailer variable with this new class.
https://github.com/SparkPost/wordpress-sparkpost/blob/master/sparkpost.class.php#L102-L109
However BuddyPress instantiates a new instance of PHPMailer when it's dealing with emails.
So it doesn't look like they're compatible at the moment.
from wordpress-sparkpost.
Closing as dupe of #31 - let's continue discussion there.
from wordpress-sparkpost.
@richleland - BuddyPress ≠ bbPress
It seems the bbPress issue is just when using the API as it uses BCC.
This issue is that BuddyPress creates a new instance of the PHPMailer class and then does it's emails. While this plugins implementation is to grab the global $phpmailer variable and replace it with an instance of it's own class, which is simply discarded in the BuddyPress implementation.
from wordpress-sparkpost.
Oh I totally misread that - thanks for the clarification.
from wordpress-sparkpost.
Given there is another report of this problem, I'll investigate this soon.
from wordpress-sparkpost.
Oke thanks, i look forward to hear from you.
from wordpress-sparkpost.
Related Issues (20)
- Allow option to raise email exceptions HOT 1
- Support adding Campaign tag HOT 1
- Newly installed sparkpost plugin, getting SSL error: Failed to enable crypto HOT 3
- Show admin-wide alert if plugin is not ready to send!
- BuddyPress not sent with SparkPost HOT 3
- Why is Content-Type unsupported? HOT 9
- API Transmission Endpoint Changes HOT 2
- Retry transmissions after 5xx Error HOT 1
- Sparkpost replaces the url with a custom url HOT 3
- Emails could not be sent. htmlentities() expects parameter 1 to be string, array given in xxx HOT 8
- Missing assets folder in plugin installation HOT 6
- Retry transmissions after cURL error
- QUIT
- Sparkpost for only one contact form?
- reply-to not working
- Disable SparkPost mailer using a PHP constant
- Plugin uses incorrect bounce domain HOT 1
- Wondering if this plugin is still being maintained? HOT 1
- Deprecated notice on WP 5.5 HOT 2
- Fatal error: Uncaught Error in PHPMailer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-sparkpost.