• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

OrganicWeb

Mailchimp Training & Consulting

  • Home
  • Services
    • Mailchimp Training
    • Mailchimp Consulting
  • Free Tools
    • Mailchimp Tutorials on YouTube
    • Subject Line Generator
    • Marketing Ideas Generator
    • Map Maker for Email
    • WhatsApp Click to Chat Generator
    • Avoid Email Going to Spam
    • Email Link Generator
    • Is Mailchimp Down?
    • Marketing Facts and Stats
  • Content
    • Blog
    • Videos
  • Contact & About
    • Contact
    • About

How to fix password link not showing in WordPress emails

If you’ve lost your WordPress password then it’s usually very simple to reset your password. All you need do is:

  1. Click Lost your password? on the login screen.
  2. Enter your username or password then click Get new password. You’ll see check your e-mail for the confirmation link on your screen.
  3. Click on the password reset URL sent in an email to you.
  4. Follow the next steps.

But, occasionally, the URL may not not show in the email that you receive. The instructions below describe how to solve this problem if you use the wpMandrill Plugin.

Fix password reset email problems with Mandrill and WordPress

Mandrill is a transactional email service provided by Mailchimp. WordPress by default uses the host server to send email. The problem with this is that hosts are great for webhosting but email is very much a secondary concern. Using Mandrill means that emails aren’t sent from your host but from the ultra high reliability email servers belonging to Mandrill and Mailchimp.

There are a few means of integrating WordPress and Mandrill but the simplest is by using the free wpMandrill plugin for WordPress. An issue that I’ve recently become aware of is that the link in password reset emails is stripped out meaning that a password can’t be reset.

Instructions to show the WordPress password reset link

Just follow the steps below to show the password reset link as it should.

  1. Go to the wpMandrill settings (from your WordPress dashboard).
  2. Check the Replace all line feeds ("n") by < br /> in the message body? checkbox.
  3. Click Save changes.

What if you can’t login to WordPress

If for some reason you can’t login to your WordPress dashboard in order to make the change as above, then just add the following to your functions.php file.


add_filter('mandrill_payload', 'wpmandrill_auto_add_breaks');
function wpmandrill_auto_add_breaks($message) {

$html = $message['html'];

$is_comment_notification = ( $message['tags']['automatic'][0] == 'wp_wp_notify_moderator' );
$is_password_reset = ( $message['tags']['automatic'][0] == 'wp_retrieve_password' );
$no_html_found = ( $html == strip_tags($html) );

// Add line breaks and links to messages that don't appear to be HTML
if ( $no_html_found || $is_comment_notification || $is_password_reset ) {
$html = wpautop($html);
$message['html'] = make_clickable($html);
}

return $message;

}

The password URL will now show in emails sent from your WordPress website

Found this useful? Please share:

Related

  • Moving from Mandrill to Amazon SES in WordPress
  • What does ‘cleaned’ mean in Mailchimp?
  • Fix WordPress emails going to spam?

Filed Under: WordPress

Watch Gary in action

Gary frequently adds Mailchimp instructional videos to his YouTube channel. Subscribe to keep updated.

→  Subscribe   ←

How to add an editable attachment to a Mailchimp campaign.

How to add, and send, coupon codes in Mailchimp.

Reader Interactions

Comments

  1. Ed Hodge says

    June 21, 2017 at 10:09 pm

    Hi – how do I find the functions.php file?

    Reply
    • Gary says

      June 21, 2017 at 10:14 pm

      The file will be part of your theme. If unsure then check your theme documentation.

      Reply
  2. Sam Fitzpatrick says

    September 4, 2017 at 7:36 pm

    Thank you, this helped me

    Reply
  3. Dan P says

    April 26, 2018 at 8:10 pm

    Very useful advice, thanks @Gary! Missing links in a password reset email are not too user friendly..

    Reply
  4. webadroid says

    November 25, 2019 at 3:18 pm

    That is awesome, It solved issue! Thank you so much.

    Reply

Leave a Reply Cancel reply

You are here: Home / WordPress / How to fix password link not showing in WordPress emails

Primary Sidebar

Mailchimp write about my work

Read on Mailchimp.com

Learn from a Mailchimp Pro Partner

Signup to receive info about Gary's Mailchimp beginner and advanced classes.

Sign up

Gary on Australian National Radio

Changes are coming to the Australian Spam Act

Read Gary's article in SmartCompany

Meet Gary, Mailchimp Expert

Gary is a Mailchimp Expert and Partner. He delivers Mailchimp training and consulting services in Australia, New Zealand and Singapore. Gary presents at Mailchimp events and hosts the first, and only, Australian Mailchimp sponsored event. He is M.B.A. qualified from Henley Business School, U.K.

Contact Gary for your Mailchimp needs

Footer

Customer Rating

Mailchimp Pro Partners

Contact

Contact Gary for all your Mailchimp training, consulting and integration needs.

Contact Gary.

Copyright © 2022 · Sitemap · ABN: 40800872179 · Privacy Policy · Terms of Service