Some BP HTML email possibly being rejected by Mail Servers (?)
Hi all (hoping that @djpaul notices this),
Email trouble in BP is apperantly very hard to solve (I’ve been sifting through email related posts in the forums for hours!), so I’m going to include as many clues here as possible. Hopefully someone has the patience to read all this and make sense of it, and hopefully this problem is not specific to my installation. Yes, I have a lot of plugins. But, I have disabled all of them at times to test this, and I’m fairly confident that it is not a plugin conflict.
It seems like some of the messages generated by BP are formed in such a way that they are being rejected (silently?) by external mail servers (i.e. google, yahoo, hotmail) while other email messages are fine. I think this may be giving the impression that BP is not sending the email, but the email messages are in fact being sent (in my case anyway). They just don’t seem to be handled properly on the recieving end. Why?… I have no idea. Hoping for some tips to continue troubleshooting here.
Relevant Plugins in use:
wp-mail-smtp: In case the email problems were PHP mail() related
bp-email-to-wp-mail-from-bridge: To fix BP ignoring existing mapping for the From email
buddypress-group-email-subscription: To add group email functionality (mentioning only because email sent from this plugin works fine – plain text)
Relevant Config Info:
At first I wasn’t using an SMTP plugin, but my current config is using WP-Mail-SMTP.
It is configured with the localhost as the SMTP Server (HostGator shared host).
Outoing email seems to work fine (with or without the plugin). It’s only outgoing BP mail that isn’t working properly.
High Level Details:
Some BuddyPress generated email works and some doesn’t. There are 3 specific examples that I’ve been testing:
* The “Friend Request” email works great! It’s a really nice HTML formatted email that informs the target of the request that the request has been made.
* A PM to a member doesn’t work. No email notification is sent to the target of the PM (Notification settings are correct)
* A Mention doesn’t work. No email is sent to the BP user targeted by the mention (Notification settings are correct).
The email messages that don’t appear to be working (i.e. not reaching it’s destination) are actually being sent. However, it seems like they are completely ignored by the receiving mail server.
* This has been confirmed with the debug plugin (bp-email-debug-2.php). In all cases it reports that the email was sent.
* This has been confirmed by my ISP. I had them watch the email get sent out from the localhost (the smtp server) to a google mail server (for example) but the message was not received.
I know that my mail server/domain is not blacklisted because as mentioned above, the “Friend Request” email is sucesfully sent and delivered to the same recipeint. Also, the buddypress-group-email-subscription plugin works well and sends email succesfully to the same recipients.
NOTE:The same email (eg. PM and Metion related email) that is not delivered successfuly to external mail servers (google, yahoo, hotmail) IS sucessfully delivered to email addresses hosted on my local mail server (i.e. the mail server running on the same WP/BP host – Hostgator).
Some steps I’ve taken to test/resolve
I’ve ensured that the “From” email address is correct (i.e. not being rejected because it is “email@example.com”). BTW, this led me to the bp-email-to-wp-mail-from-bridge Plugin which bridges wp_mail_from settings that I had in WP functions.php (child theme) to BP Email fuction(s). Everything is fine here.
I’ve installed and tested WP-Mail-SMTP plugin in every way I can imagine. No change in email behaviour
I made sure all available options in the notification settings (i.e. to receive all types of notifications) are enabled and have tested the various email scenarios on many different users.
Other important notes
I’m using the plugin buddypress-group-email-subscription to send email to group members when things happen in the forums. As mentioned above, this plugin successfully sends email to the same recipeints that are not recieving the PM and Metnion emails. Worth noting is the email messages sent by this plugin are plain text.
Thanks for getting this far… that’s a lot of reading. Sorry. I’m not expecting a simple answer to this. I’m just hoping for someone to point me in the right troubleshooting direction.
- You must be logged in to reply to this topic.