---
title: "Fix Broken Password Reset Emails When Using Paid Memberships Pro"
id: "22739"
type: "post"
slug: "fix-broken-password-reset-emails-when-using-paid-memberships-pro"
published_at: "2018-10-31T12:35:16+00:00"
modified_at: "2026-03-11T08:35:39+00:00"
url: "https://postmansmtp.com/es/fix-broken-password-reset-emails-when-using-paid-memberships-pro/"
markdown_url: "https://postmansmtp.com/es/fix-broken-password-reset-emails-when-using-paid-memberships-pro.md"
excerpt: "In one of the support threads, a user complain that password reset emails arriving without the link. After a lot of checking, I found that Paid Memberships Pro is forcing HTML type emails for every email sent. The developer did..."
taxonomy_category:
  - "Troubleshooting"
---

In one of the support threads, a user complain that password reset emails arriving without the link.

After a lot of checking, I found that **Paid Memberships Pro** is forcing HTML type emails for every email sent.  
 The developer did implement some kind of fix when using the native WordPress mailing system but ignored the case that you will use SMTP mailer plugin like [Post SMTP](https://wordpress.org/plugins/post-smtp/)
.

I wrote a small code you can put in your theme `functions.php` that will fix the issue.

```
if ( defined( 'PMPRO_VERSION' ) ) {
    add_filter( 'retrieve_password_message', 'post_smtp_retrieve_password_message', 10, 1 );
}
function post_smtp_retrieve_password_message( $message ) {
        $message = str_replace('<','',$message);
        $message = str_replace('>','',$message);
        $message = str_replace("\n",'<br>',$message);
        
        return $message;
}
```

You can download it as a plugin from here: [post-smtp-pmpro-fix](https://postmansmtp.com/wp-content/uploads/2018/10/post-smtp-pmpro-fix.zip)

### Deja un comentario

Lo siento, debes estar [conectado](https://postmansmtp.com/es/exp_obj_wp/?redirect_to=https%3A%2F%2Fpostmansmtp.com%2Fes%2Ffix-broken-password-reset-emails-when-using-paid-memberships-pro%2F)
 para publicar un comentario.
