Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author useStrict

    (@usestrict)

    Hi netnuvo, thanks for reaching out.

    The problem with setting HTML messages directly in the plugin is compatibility with other plugins. For example, WooCommerce sets the wp_mail() header filter for HTML messages. wpMandrill is also tricky when it comes to that. So if I set it in the plugin, I’ll probably break it for some people. I guess I *could* add an admin option to enable HTML messages. I’ll give it some thought later.

    However, there are a couple of solutions for you: you can hook into bbpnns_extra_headers filter and set your HTML right there, or you can do what WooCommerce does and hook into wp_mail_content_type filter directly.

    I hope that helps.

    Plugin Author useStrict

    (@usestrict)

    Accidentally marked the topic as resolved instead of setting the follow-up notification 🙂

    Plugin Author useStrict

    (@usestrict)

    Closing the ticket as fixed, as I haven’t heard back in a week.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTML support in notification email, code inside’ is closed to new replies.