WordPress.org

Ready to get started?Download WordPress

Forums

SB Welcome Email Editor
[resolved] Plugin removes formatting on comment mails (3 posts)

  1. boborg
    Member
    Posted 2 years ago #

    After I installed this plugin I lost formatting on comments notification mails and recover password mails does not include a link for password reset anymore.

    Is there a fix for this?

    http://wordpress.org/extend/plugins/welcome-email-editor/

  2. Sean Barton
    Member
    Plugin Author

    Posted 2 years ago #

    Hi boborg,

    This is done because it sets the type of email for the entire system to the setting that you have chosen on the welcome email editor settings page. I'm thinking this wasn't a good idea systemwide so am going to remove it shortly. The code yo need to remove or comment out for now is the following:

    if ($send_as = $sb_we_settings->header_send_as) {
    if ($send_as == 'html') {
    add_filter('wp_mail_content_type', create_function('$i', 'return "text/html";'), 1, 100);
    add_filter('wp_mail_charset', 'sb_we_get_charset', 1, 100);
    }
    }

    It will fix the comments emails. I presume by 'lost formatting' you mean that the paragraphs all mould into one.

    With regard to the lost password link.. I shall get a fix out in the next few hours. I imagine that I neglected to put the hook into place for you to use in the settings. I may also make a toggle to turn off my plugin overriding the default forgot password email.

    Watch this space.

    thanks
    Sean

  3. Sean Barton
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    I have added an option called 'Set Global Email Headers' which will allow you to turn off the feature which is causing your comment emails to come from the wrong email address. Hopefully this clears things up. Additionally I have lowered the priority of those functions so the likes of WP can override it with the actual from address and name.

    To get the link in the reset password you need to add it into the body text using the hook [reset_url]. If this isn't working for some reason then let me know. Perhaps contact me directly for a faster response... barton.sean@gmail.com or Skype sean_barton.

    thanks
    Sean

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic