Reply To: Customizing emails template
Thanks @henrywright,
I’ve added the filter just before sending the mail and I immediatly remove it on bp_core_sent_user_validation_email to avoid problem on other WordPress mail that needs text/plain.
I’ve also found in the code inside bp_core_signup_send_validation_email( $user_id, $user_email, $key ) function these three hooks that I used to change the message as needed by my website:
$to = apply_filters( 'bp_core_signup_send_validation_email_to', $user_email, $user_id );
$subject = apply_filters( 'bp_core_signup_send_validation_email_subject', $subject, $user_id );
$message = apply_filters( 'bp_core_signup_send_validation_email_message', $message, $user_id, $activate_url );