Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress message/comment emails not sending since update


  • redokodesign
    Participant

    @redokodesign

    Hi everyone,

    A coupel of weeks ago I updated Buddypress, added Wordfence and also Jetpack (a sister site suffered an attack so these measures were added for extra security).

    Since then the regular WordPress emails (registration, lost password etc.) all send fine, as do BPpress forum emails, but none of the Buddypress emails – i.e. the emails with templates found in dashboard > emails – send any more.

    We’re running: Buddypress Version 2.5.1, WordPress 4.4.2 running Kleo Child theme.

    We use an SMTP plugin which has always worked great. The test email from this plugin sends fine too.

    I installed the BP email debug plugin as recommended in other posts by Paul Gibbs (thank you Paul!) – I’ll post the first part of the results below. The rest has lots of personal info – email addresses, passwords etc. so if anyone can suggest a safe way of sharing this that would be great.

    Huge thanks in advance to anyone who can help. Unfortunately I’m not permitted to post a link to the site as it’s a secure and locked down site with lots of active users.

    Debug email content:

    SMTP Error: data not accepted.

    BP_Email Object
    (
    [bcc:protected] => Array
    (
    )

    [cc:protected] => Array
    (
    )

    [content_html:protected] => {{sender.name}} sent you a new message: "{{usersubject}}"

Viewing 15 replies - 1 through 15 (of 15 total)

  • redokodesign
    Participant

    @redokodesign

    Does anyone have any thoughts or suggestions on this? I’d be very grateful, we’ve got hundreds of charity volunteers on our buddypress social network and we’re desperate to find a solution.

    Ah hah. That’s an interesting error – thanks for testing that. What SMTP plugin are you using?

    “SMTP Error: data not accepted.” is some kind of error from the SMTP server. We need to understand what it means and what causes it.

    @redokodesign Do you know how to access raw email headers, in whatever email client you use?

    If so, can you copy/paste the email headers of a WordPress email that you’ve received from the site (i.e. one that is working correctly and was sent)? Can you also share with me the “to” “from” “bcc” “cc” parts of the text that the BuddyPress email debug plugin sent you?

    You can find my email address on https://profiles.wordpress.org/djpaul/

    I have a suspicion this is something to do with the “from” or “reply to” properties being different for each email, but I need the data to prove this, and what SMTP plugin you are using to see how it is configuring WordPress.


    berkelmudez
    Participant

    @berkelmudez

    Hi,

    I just had a similar problem problem where emails were working perfectly from WordPress and BB press but not from Buddypress for some reason even tho my SMTP plugins were working.

    It turned out that the SMTP plugins I were using weren’t applying the configuration on Buddypress emails for some reason. The plugins that did not work for me were:Configure SMTP, Easy WP SMTP, WP-Mail-SMTP.

    The plugin for me that did succeed in setting the smtp for buddypress email notifications was ‘Postman SMTP’. I think it might be worth a shot trying this plugin to see if it works with this plugin.
    I have no idea why the other SMTP plugins didn’t work but this plugin did and it might work for you as well. Good luck


    redokodesign
    Participant

    @redokodesign

    Hi everyone,

    Thanks SO much @djpaul and @berkelmudez for your help and advice.

    Yes, I’m running WP-Mail-SMTP. I’ll try the other plugins if there’s no other solution.

    I’ll send you the info from the email headers now Paul. Thanks for taking a look.

    Tom

    (Everyone else: I’m following up Tom’s problem via email and I’ll update here once we have something).


    redokodesign
    Participant

    @redokodesign

    Hey all,

    A HUGE thank you to @djpaul and everyone else who helped to solve this problem for me.

    Paul asked me to install the following plugin:

    https://wordpress.org/plugins/bp-email-to-wp-mail-from-bridge/

    – This fixed the problem for me instantly. The site now has working notifications for Buddypress, BPpress and WordPress. Amazing! If you too are running WP-mail-SMTP and having problems do try this fix.

    The Buddypress community is always so helpful.

    Thanks again,

    T


    justarandomuser
    Participant

    @justarandomuser

    I just got it working with the wonderful plugin “Postman SMTP”!

    But there is still a problem with BuddyPress 2.5: the emails are not sent with css styles!

    With the following in functions.php, the mails are sent in text/html

    add_filter( 'wp_mail_content_type', 'set_content_type' );
    function set_content_type( $content_type ) {
      return 'text/html';
    }

    Without they are sent in text/plain. But with or without, the emails never look like in the customizer.

    Any help? 🙁

    @justarandomuser Yes. BuddyPress does not and will not support WordPress’ wp_mail_content_type filter, so setting this or not does not affect BuddyPress.

    Postman SMTP plugin re-declares a function called wp_mail(). BuddyPress will send its emails in plaintext if wp_mail() has been redeclared.

    This decision was made because a lot of legacy WordPress plugins that change email content/appearance, or how they are delivered, re-declare wp_mail() and it is impossible for BuddyPress to know if/how it could support all these custom implementations.

    If you are using Postman SMTP to only send emails via SMTP, you could find an alternate SMTP plugin. People have mentioned some recently in email support discussions on this forum, though I can’t remember the names. If I find one again, I’ll try to remember to let you know here.

    If you are using Postman SMTP for any other purpose, and you don’t want to switch to another plugin that only configures WordPress to send via SMTP, then I’m afraid you’re out of the options at the moment.

    You are right that the Customizer does not indicate that the email will only be sent in plaintext in these situations. We’ll get some messaging added to that screen in the next BuddyPress release to clarify that.


    justarandomuser
    Participant

    @justarandomuser

    Hello,
    thank you for your answer.
    So If I use another SMTP plugin, the mails should be sent in HTML format, right?

    I am not forced to use the plugin I talked about above. It’s just the most confortable and at the moment the only one that works with Buddypress 2.5.2


    melkerh
    Participant

    @melkerh

    Hello,
    I installed and activated the plugin bp-email-to-wp-mail-from-bridge but notifications still can’t be sent from BP. I’m on Arvixe who seem to be blocking the “normal” WP mail functions, though WP-Mail-SMTP works and the test mails come through.
    From what redokodesign says, he seems to be using both of these plugins? Not working for me with BP 2.5.2 and WP 4.4.2.


    melkerh
    Participant

    @melkerh

    Btw I’m only referring to the registration confirmation email, but I suppose(?) other BP emails won’t get sent either.


    melkerh
    Participant

    @melkerh

    Trying the bp-email-debug-2.php plugin script and it returns (via email): Email delivered – true.
    But still no registration confirmation email…


    melkerh
    Participant

    @melkerh

    I’ve been digging some more, and these outgoing emails are being blocked by the server at Arvixe. So if anyone is having a similar problem, remember to check for bounced messages in the webmail on the server 😉

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.
Skip to toolbar