Forum Replies Created
I ended up using the asyncronous-bbpress-subscriptions https://wordpress.org/plugins/asyncronous-bbpress-subscriptions/ pluginIn reply to: ETA for 2.6?
For anyone keeping an eye on the development of 2.6, all of these fixes are already ported over, and we bumped the 2.6 release date back to the end of June to give us time to enjoy the fresh summer air.
This was mentioned in this 2.5.4 release blog article https://bbpress.org/blog/2014/06/bbpress-2-5-4-security-bugfix-release/
But it’s already end of July, so I am assuming that the date got pushed out again.
We’re happy to add extra hooks and filters into bbPress where needed to help facilitate having wpMandrill work with bbPress but someone who knows and understands wpMandrill and the Mandrill API is going to have to give us a hand here.
Okay guys, some good news 🙂
After spending almost the entire day, I finally found a way to get around the “only one bcc email” restriction of Mandrill API. Basically Mandrill API provides a way to trigger individual emails for a list of individual email address. To do that we need to add the list of email address to the the “to” column in a array with type as “bcc” and then set “preserve_recipients” to false.
After I found this I wrote a small plugin by filtering the
wp_mailfilter and then parsing the “bcc” header and then adding the emails to the “to” array. The full explanation and code is available at http://bulkwp.com/blog/using-wpmandrill-to-send-subscription-notification-from-bbpress/
Note: Strong disclaimer. It currently works for me but there may be lot of corner cases. So first check it in your dev server before adding to a live server.
Onto the biggest issue is that the wpMandrill plugin for WordPress DOES NOT support BCC
Oops! and thanks for catching it. I tested it one bcc address and it worked. So I assumed that it works for all the email address that were sent in bcc.
There are two reasons why the email fails
wwwwas appended in front of the domain name.
– The email address is enclosed with angle brackets
For me the
wwwissue didn’t happened but it was because of the second issue.
Once I removed the angled brackets it worked for me through wpmandrill. But you will get a bounce email if that email doesn’t exist.
To actually find whether the email went through or not, check the api logs from the mandrill dashboard. Even though you are getting a bounce email, the emails might have gone to all your subscribers who are added in bcc.
Yes, Mandrill don’t like the angle brackets in front of the email address.
The patch that I made for this just got merged into bbPress trunk https://bbpress.trac.wordpress.org/ticket/2618
Bcc’ing all subscribers didn’t cause any issue with mandrill for me after I removed the angle brackets from the do_not_reply email address.