Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter to change BP from address


  • Mike Witt
    Participant

    @mike80222

    Is there a filter I can use to change the buddypress from address in outgoing notification emails?

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

  • Mike Witt
    Participant

    @mike80222

    I believe I should have put this in the How To and Troubleshooting forum. But after posting it there, I realize that I can’t delete this post. If one of the admins could delete this duplicate, that would be great.


    shanebp
    Moderator

    @shanebp

    I think you can do that with a WP filter

    add_filter( 'wp_mail_from', 'custom_wp_mail_from' );
    function custom_wp_mail_from( $original_email_address ) {
        //Make sure the email is from the same domain 
        //as your website to avoid being marked as spam.
        return 'webmaster@mydomainname.com';
    }

    wp_mail_from


    Mike Witt
    Participant

    @mike80222

    Hi @shanebp,

    Am I missing something? I would have thought that would change the from address of all outgoing mail, not just notifications from BuddyPress?

    I can’t really test $original_email_address because BP is not using a unique from address to start with.

    But perhaps I’m confused about something?

    -Mike


    shanebp
    Moderator

    @shanebp

    afaik – you cannot change the from address for just notifications.

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