• Resolved Bharat

    (@chavodbharat)


    Hi,

    I want to send html email, but it always sending Plain text email content.
    I have using Mandrill to sending email.

    WordPress : Version 4.5
    Buddypress : Version 2.5.2

    Please help what is correct steps to get html emails working.

    I have try to put content type in functions.php file but still email coming in plain text:
    I have try to below code
    add_filter( ‘wp_mail_content_type’, ‘set_content_type_grandma’,99);
    function set_content_type_grandma( $content_type ) {

    return ‘text/html’;
    }
    its not working for html email
    Please help We need to urgent

    https://wordpress.org/plugins/buddypress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Bharat

    (@chavodbharat)

    Hello Guys

    I have found solutions for html email text
    there is some changes in bp_core files :
    You can change content type given below path:
    \wp-content\plugins\buddypress\bp-core\bp-core-functions.php line number 2962

    put content_html text instead content_plaintext:
    content_plaintext should be send plain text email and content_html should be

    send html email:
    $email->get( ‘content_plaintext’, ‘replace-tokens’ )

    $email->get( ‘content_html’, ‘replace-tokens’ )

    I would like to give suggestions, if buddypress team should be given backend options like select content type (1)HTML email (2)Plain text
    because buddypress is not given any hook for changes content type text

    Plugin Author Boone Gorges

    (@boonebgorges)

    Hi chavodbharat – If you’d like to have a hook to modify this behavior, could you please post the suggestion (along with a description of the use case) at https://buddypress.trac.wordpress.org? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Send html email template text with activations links’ is closed to new replies.