• I have seen a post here on this topic, but it went unanswered (by the user)…

    When this plugin is active password reset emails look like this:
    //—
    Someone requested that the password be reset for the following account: http://www.YYY.com/ Username: YYYUser If this was a mistake, just ignore this email and nothing will happen. To reset your password, visit the following address:
    —-//
    That is all, the formatting (Carriage returns) is gone and the reset link is missing. Also the “Friendly From” in the email gets replaced with the value used in the EAN plugin.

    WordPress Version 3.4.1
    EAN version 2.6

    http://wordpress.org/extend/plugins/easy-automatic-newsletter/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter philiplawlor

    (@philiplawlor)

    PillarDev,

    I just loaded EAN version 2.7 and this issue still exists.

    Theme: Atahualpa version 3.7.9

    IHTH

    I’ve got exactly the same problem and no idea of the solution ….

    Does anyone have a fix for this yet?

    We are using WP-Members and I think it is because the plugin is changing the email content type and that is why no link is showing up in the Forgot Password email. However, I do not know how to/where to change this, IF that is indeed the issue.

    Would appreciate any help!! Thanks!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    For help with your own issues, create your own threads.

    Done.
    Figured if someone answered the above person’s request, it would help us both.

    Yeah, what’s the big deal here? Everytime this issue comes up, somebody else says ME, TOO, only then to have a moderator cry FOUL, roll your own, and then the question never gets resolved. Well, I too, have this problem, and cannot find a solution, and frankly have been looking for months, intermittently.

    Thread Starter philiplawlor

    (@philiplawlor)

    I agree, this issue is still open. More activity may get the developer to address it sooner. Also an “Angel” developer could jump in and help out.

    <MOUNT SOAP BOX>
    I love open source software and the developers never get enough credit. Typically they also have a tendency to create and abandon. The FOSS (Free Open Source Software) model allows/promotes anyone to contact the developer and volunteer to fix and/or take over a project if the original author(s) priorities have changed.
    </MOUNT SOAP BOX>

    In this spirit, I invite the hackers and script kiddies to take a look at the code and figure out what is going wrong. Then tell in detail what was changed so the author can publish the fix.

    Excellent post, philiplawlor. Indeed, I had never heard of the FOSS model, but suspected something like that existed. Now I have a name. For my purposes, I finally took the LOST PASSWORD and RESET off my login form, but among 1300 members, my clientele must eat their passwords for lunch because they seem to need a new one every time they log in…

    Thread Starter philiplawlor

    (@philiplawlor)

    Has anyone been able to create a workaround for this?

    The issue is that the plugin does this:

    add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
    add_filter('wp_mail_from', 'ean_mail_from');
    add_filter('wp_mail_from_name', 'ean_mail_from_name');

    But it never removes those filters when it’s done. The second example shown it the Codex shows how to do this properly: http://codex.wordpress.org/Function_Reference/wp_mail#Examples

    This will cause a number of conflicts (such as this bug: http://core.trac.wordpress.org/ticket/23578) between this plugin and others because this plugin is setting global settings when it should be specific to the plugin instead.

    The fix is to change the add_filter code to be like so:

    add_filter('wp_mail_content_type', 'ean_set_content_type');
    add_filter('wp_mail_from', 'ean_mail_from');
    add_filter('wp_mail_from_name', 'ean_mail_from_name');
    
    function ean_set_content_type()
    {
            return 'text/html';
    }

    And then at the bottom of the file, before the ?>, add the following:

    // reset filters to to avoid conflicts -- http://core.trac.wordpress.org/ticket/23578
    remove_filter('wp_mail_content_type', 'ean_set_content_type');
    remove_filter('wp_mail_from', 'ean_mail_from');
    remove_filter('wp_mail_from_name', 'ean_mail_from_name');

    Thread Starter philiplawlor

    (@philiplawlor)

    ok, I will give this a try, I hope it clears the issue.

    Thanks for investigating this!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: Easy Automatic Newsletter] Password Reset Email Issue’ is closed to new replies.