Viewing 13 replies - 1 through 13 (of 13 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    I have attempted to allow for HTML emails, but it may need debugged to figure out why it may not be working.

    I also know that BuddyPress version 2.5 is going to a new BP Email setup that I’m planning to integrate with as best I can. That should also help alleviate html emails as well.

    Hi Michael,
    Just wanted to check in to see if there was any update on this. I see BuddyPress 2.5.2 is out and has a nice Email management area now, but not a hook/tie in with BP Registration Options.

    Thanks

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    There hasn’t been, to be honest. Most definitely aware of the new email stuff in the latest BuddyPress, but have not managed to find the time to integrate yet.

    Hi Michael,
    Thanks for the update, I know how precious time can be and how quickly it disappears. Look forward to a future update with the integration and hope it’s not too painful.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

    Hi Michael, so are HTML emails not allowed for approved/denied users? Or if they are, where is the template file(s) located?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    I tried doing a rudamentary html support version in the plugin in probably 4.1 or 4.2, i forget which, but I’m not sure it ever worked like I intended. BuddyPress has since come out with their own email setup, but I haven’t had a chance to convert things to that yet.

    So in short, no?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure why the text/html filters don’t work. Perhaps I’m misunderstanding their purpose or I’m not applying at the right time. I’m not against a 4.2.12 release if it helps fix that in the meantime, but just haven’t had a chance to touch on this plugin as a whole much, and would prefer focusing more on the new BP email integration instead.

    So short answer, not unless there’s a quick fix I missed. Longer answer above ??

    Got it, thanks.

    Hello,

    Any update on this ?

    Would be nice to be allowed to use, at least the markup “br” ??

    The apostrophes also are escaped, displaying things like that : “Brian\’s umbrella”.

    Thanks already for this plugin.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Nope, no update from me.

    We use standard wp_mail() which has filters you could possibly do your own thing with, if you want to try.

    Okay thanks, here the solution.

    /includes/admin.php : 90

    // Use wptexturize instead of sanitize_text_field which remove all tags, line break
    	$activate_message = wptexturize( $args['activate_message'] );
    	update_option( 'bprwg_activate_message', $activate_message );
    
    	$approved_message = wptexturize( $args['approved_message'] );
    	update_option( 'bprwg_approved_message', $approved_message );
    
    	$denied_message = wptexturize( $args['denied_message'] );
    	update_option( 'bprwg_denied_message', $denied_message );

    Use “br” or any html tag to template your mails.

    /includes/admin.php : 212

    // I also stripslashes here, not sure if needed : 
    
    				wp_mail( $mailme_filtered['user_email'], $mailme_filtered['user_subject'], stripslashes($mailme_filtered['user_message']) );
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Format Emails’ is closed to new replies.