Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: BuddyPress 2.5.1 – Maintenance release

@dvpl

Participant

Additional Information.

I am using sendgrid plugin to send emails, buddypress sending the plain text html. I need HTML email. I also tried to add the following code in function.php but BP_Email showing me null value.

add_filter( 'bp_email_use_wp_mail', '__return_false' );
add_filter( 'bp_send_email_delivery_class', function( $delivery_class ) { 
    return 'Implementwpemailbp'; 
} );
class Implementwpemailbp implements BP_Email_Delivery
{
public function bp_email(BP_Email $email){
//add_filter('wp_mail_content_type', 'set_html_content_type');

//wp_mail($to, $subject, $message, $headers = '', $attachments = array())

//remove_filter('wp_mail_content_type', 'set_html_content_type');
var_dump(get_object_vars(BP_Email));
}
}

Please help what I need to update in above code.

Skip to toolbar