• Resolved sssimonooo

    (@sssimonooo)


    I’m using the plugin with a Buddypress. Version 2.5.2
    and
    Worderss version 4.4.2

    The Customize for Email Template works great. I would suggest more option on header section. Like HTML editor the same as is on the Footer.

    What my main issue is the WYSIWYG editor (HTML email) doesn’t work.
    Just a Plain Text Email Content is sent to the user. How i can enable WYSIWYG editor (HTML email) for my emails?

    Also I cant find or create “Lost password email” as a part of 16 default emails.

    Thanks for help

    https://www.ads-software.com/plugins/email-templates/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi sssimonooo those 16 emails are the new functions from buddypress which also includes an HTML customizer. So in theory you don’t need this plugin as BP by default include the same functionality now.

    Regards

    Thread Starter sssimonooo

    (@sssimonooo)

    Damian

    Thank you for such a quick answer.

    I know that but the default customizer hasn’t got the feature to add the logo for example. The “email template” has more option in customizer,

    Do you know what the WYSIWYG HTML editor does’t work just the plain text is sending?

    Also are you able to answer the other questions?

    Thank you

    Im afraiid no, I guess it’s a question that should go on Buddypress forums instead.

    Hi, i’ve a working solution for those like me who did not receive any buddypress email with html format (because there was a 3rd party plugin which was redeclaring wp_mail for eg.), here is the code to put in your functions.php file in your theme :

    /**
    * Provide an HTML template for all your BuddyPress emails
    * BuddyPress 2.5 introduced a new stylised HTML email system.
    * By default the HTML system doesn't work if a 3rd party transactional email plugin is active
    * (e.g. wpMandrill or SendGrid), and reverts to sending plain text emails.
    *
    * This function allows the stylised BuddyPress HTML emails to be sent using some 3rd party plugin.
    * It does this by sending the email through wp_mail() rather than directly with PHPMailer.
    *
    * @author Mecanographik
    *
    * inspiration :
    * @link https://github.com/21applications/bp-wpmandrill
    *
    */
    add_action( 'init', 'my_prefix_bp_wp_mail_html_filters' );
    function my_prefix_bp_wp_mail_html_filters() {
        add_filter( 'bp_email_use_wp_mail', function( $bool ) {
          return false;
        }, 10, 1 );
    }

    hope this helps ??

    Note about the previous snippet :
    If html still doesn’t work, just add this second (and complementary) function in functions.php :

    /*
    * Force HTML content type format for wp_mail
    */
    function set_content_type( $content_type ){
    
      if( empty($content_type) OR $content_type == 'text/plain' ) {
        $content_type = 'text/html';
      }
    
     return $content_type;
    
    }
    add_filter( 'wp_mail_content_type', 'set_content_type', 1 );

    Did it help you?

    @mecanographik

    you just saved me a lot of hair pulling, i am using WP-Mail-SMTP and seems this causes the emails to reset to text just as you mentioned. i used your first code and voila ! runs like a charm.
    txs a lot for sharing !

    Mako

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HTML Email doesn't not work with BUddypress’ is closed to new replies.