Postmark for WordPress
[resolved] Force HTML emails conflicting with plain text emails (4 posts)

  1. fightthecurrent
    Posted 3 years ago #

    Interesting issue. I've checked "Force all emails to be sent as html" so that WooCommerce emails wouldn't be sent as plain text html emails. But now whenever a password reset email is sent out, the link to reset the password is removed. I've done some other research and found out that's the reason, I'll post if I find anything else.


  2. fightthecurrent
    Posted 3 years ago #

    I referrence this WordPres bug report: http://core.trac.wordpress.org/ticket/21095

  3. fightthecurrent
    Posted 3 years ago #

    It's not glamorous, but it does the job for now:

    function cur_modify_retrieve_password_messsage($message, $key){
         // Replace first open bracket
         $message = str_replace('<', '', $message);
         // Replace second open bracket
         $message = str_replace('>', '', $message);
         // Convert line returns to <br>'s
         $message = str_replace("\r\n", '<br>', $message);
         return $message;
    add_filter('retrieve_password_message', 'cur_modify_retrieve_password_messsage', 10, 2);
  4. Josh Eaton
    Posted 2 years ago #

    I'm having this same issue with the plugin stripping the password reset link from emails when "Force all emails to be sent as HTML" is checked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.