WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Group Email Subscription
[resolved] How Emails are Sent (7 posts)

  1. Matt
    Member
    Posted 2 years ago #

    Just curious, but what methods are used to send out the notifications? I am using a plugin to send out site emails through SMTP, but this plugin seems to bypass that altogether. All other BuddyPress related emails (mentions, follows, etc.) are sent out correctly through the SMTP server, but not these.

    http://wordpress.org/extend/plugins/buddypress-group-email-subscription/

  2. Boone Gorges
    Moderator
    Plugin Author

    Posted 2 years ago #

    The plugin uses wp_mail() to send its emails - the same method used by the rest of BuddyPress - which means that your SMTP plugin should catch them. Are the BPGES emails being sent *at all*?

  3. Matt
    Member
    Posted 2 years ago #

    Yes, they are sent - but instead of being sent through the SMTP connection, they are sent through the web server itself (through phpmail). But everything else from the site (including standard BuddyPress emails) go through the SMTP server.

  4. Matt
    Member
    Posted 2 years ago #

    Bear with me on this one since I have never worked with wp_mail() before. When I look at the code to actually send the email digests, it looks like they are going directly through PHPMailer and not through wp_mail():

    From bp-activity-subscription-digest.php

    // Send!
    $result = @$phpmailer->Send();

    Perhaps that is why the digest emails are not being sent through the SMTP plugin? It appears that the instant notifications that people are subscribed to are being sent correctly, so this is the only thing I can think of. Am I wrong?

  5. Boone Gorges
    Moderator
    Plugin Author

    Posted 2 years ago #

    Crap, you're right. I think this was a modification that would allow us to send these emails in HTML format. I've opened an issue to ask the other dev about it: https://github.com/boonebgorges/buddypress-group-email-subscription/issues/17

    I'll report back when I have some conclusions.

  6. Matt
    Member
    Posted 2 years ago #

    Just checking in to see if you had any conclusions yet. I didn't see any response to your posting over at github, but wanted to check here just in case.

    Thanks!

  7. Matt
    Member
    Posted 2 years ago #

    Appears to be resolved w/ latest update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.