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

// 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 );

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

© 2020 Jakob Helmer - Powered by WordPress - @trails&tribulations