-1

How can I edit the [wordpress@example.com] shown as part of title email of user registration? I want to edit the [wordpess@example.com] to a custom one by removing the "wordpress".

Thanks for your kind effort.

Regards

henrywright
  • 10,070
  • 23
  • 89
  • 150

1 Answers1

1

It's a WordPress related thing, not actually a BuddyPress. So below is the code for that:

add_filter( 'wp_mail_from', 'change_mail_from');
function change_mail_from($from_email){
    $from_email = 'support@example.com';
    return $from_email;
}

add_filter( 'wp_mail_from_name', 'change_mail_from_name');
function change_mail_from_name($from_name){
    $from_name = 'Support Team';
    return $from_name;
}

Just modify $from_email and $from_name variable according to your needs and insert in either your plugin or functions.php of a theme.

Slava Abakumov
  • 698
  • 6
  • 17
  • Thanks a million slaFFIK! I actually used this now I will go change it; function change_activation_email_body($message) { return __( "Change Activate Email body", 'buddypress' ); } add_filter('bp_core_activation_signup_user_notification_subject', 'change_activation_email_body'); – user3196399 Jan 16 '14 at 01:38