Change the from and reply-to in email-notification buddypress

door , admin/moderator@jakobhelmer.nl

// change the from and reply-to in email-notification buddypress
add_action( 'bp_email', function( $email_type, $email_obj ) {
$email_obj->set_from( "no-reply@whateveremail.nl", "text-domain" );
$email_obj->set_reply_to( "no-reply@whateveremail.nl", "text-domain" );
}, 10, 2 );