BuddyDev

Search

[Resolved] How to change Default@wordpress.com in Buddypress


  • Participant
    Level: Initiated
    Posts: 3
    Chris on #3671

    Hi,

    The Buddypress email notifications sent to members uses the wordpress@sitedomain.com email.

    How can the default WordPress email for Buddypress email notifications be changed?
    wordpress@sitedomain.com to name@sitedomain.com

    I have done days of research, tried code and plugins and no luck. Even tried changing the code directly in pluggable.php file. Still shows wordpress@sitedomain.com in the from: label and in the email header.

    Thanks


  • Keymaster
    (BuddyDev Team)
    Posts: 13864
    Brajesh Singh on #3673

    Hi Chris,
    Welcome to BuddyDev.

    Please put the following code in your bp-custom.php

    
    function buddydev_set_bp_email_from( $from, $email_address, $name ) {
    	
    	$from = new BP_Email_Recipient( 'name@sitedomain.com', $name );
    	
    	return $from;
    }
    
    add_filter( 'bp_email_set_from', 'buddydev_set_bp_email_from', 10, 3 );
    
    

    Please do let me know if it works for you or not?

    Thank you
    Brajesh


  • Participant
    Level: Initiated
    Posts: 3
    Chris on #3698

    Hi,

    It worked, the notification emails are now using the email I specified. Thanks a million 😀


  • Keymaster
    (BuddyDev Team)
    Posts: 13864
    Brajesh Singh on #3699

    Hi Chris,
    Thank you confirming.

    Have a great time building your social network 🙂

    Regards
    Brajesh

The topic ‘ [Resolved] How to change Default@wordpress.com in Buddypress’ is closed to new replies.

This topic is: resolved
Subscribe