Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress registration ignoring WP Mail SMTP


  • corsi159
    Participant

    @corsi159

    Hello,

    I configured the WP Mail SMTP plugin, and tested it properly with their embedded test-email. This plugin is linked to a Gmail account. Whenever I send a mail, I can see a trace of it in my Gmail “sent box”.

    But when someone registes to my site (using buddypress), I can see that the registration mails are sent through the old mail config (via my web host), not through WP Mail SMTP.

    Is there anything I have to do to “tell” Buddypress to use WP Mail SMTP?

    I’m using :
    – Buddypress 3.2.0
    – WP Mail SMTP 1.3.3
    – WordPress 4.9.8

    My website : http://www.merciki.be

    Thanks in advance for your help!

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

  • Paul Gibbs
    Keymaster

    @djpaul

    WP Mail SMTP seems to be a well-written plugin. I’ve taken a quick look at its code, and how it affects what WordPress does, and it looks like BuddyPress – in theory – should work with it. However, if you say it doesn’t, I don’t know why – you’d have to spend time debugging what is going on.

    If you know some PHP and basic WordPress development, I can give you some pointers (e.g. start looking at the phpmailer_init hooks and how both plugins add to it).


    corsi159
    Participant

    @corsi159

    Hello Paul,

    Thank you for your reply.

    I’ve seen in this old topic that people had, in the time, similar issues :

    BuddyPress Email Notification Ignoring SMTP Server Settings?

    I thus created a bp-custom.php file in my plugin directory, and added the following to it :
    add_filter(‘bp_email_use_wp_mail’, ‘__return_true’);

    And now, Buddypress is sending the e-mails through the WP SMTP Config.

    I am surprised that I had to do this. This is not ideal, as my emails are now sent in plain text (not html)…


    SirLouen
    Participant

    @sirlouen

    The @corsi159 solution worked for me…

    Same issue with no HTML mails and all that 🙁

    I will have to set up the mail service in the server in order to use the default buddypress mail function…

    I can confirm that Buddy press is not compatible out of the box with WP Mail SMTP plugin.
    https://wordpress.org/support/topic/buddypress-emails-not-being-sent/


    SirLouen
    Participant

    @sirlouen

    By the way, I’m not sure why a half-core WordPress plugin like Buddypress, is not using wp_mail like his brother BBPress I was thinking if this could be a good patch to be considered in the future?


    Tyruswoo
    Participant

    @stwashburn

    Testing to see if this forum will register a plain text reply, since my last replies of how to force HTML didn’t post.

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