Support » Plugin: Subscribe2 - Form, Email Subscribers & Newsletters » [Plugin: Subscribe2] Conflict with User Meta plugin

  • Resolved razorteeth



    I just installed User Meta plugin and ever since the notification generated by Subscribe2 got messed up. I’m using HTML – Excerpt option and I’m getting emails with all html tags visible like this:

    <html><head><title>[Audacity] the story behind Audacity Health</title></head><body>Audacity has posted a new item, '<a href="">the story behind Audacity Health</a>'<br />
    <br />
    Anticipating the needs of our partners, to help them succeed in the future.<br />
    <br />
    You may view the latest post at<br />
    <a href=""></a><br />
    <br />
    If you would like to adjust your email notification settings or unsubscribe from this list follow <a href="">this link</a> to manage your subscription settings.<br />
    <br />
    Best regards,</body></html>

    Something is conflicting with each other here and I have no clue how to fix this. All help would be greatly appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • @razorteeth,

    It’s taking some time to dig through the User Meta plugin code but it certainly has some impact on the wp_mail() function.

    It seems, from your email, that it is reverting the content-type from text/html to text/plain so that HTML tags are coming through as text rather than rendered.

    I’m not sure where, why or how it’s doing this as I don’t use that plugin and it’s not easy tracking through someone else’s code.

    If I find it I’ll let you know but maybe you should ask the author of User Meta about this too.

    Thread Starter razorteeth


    Thanks for the quick reply matt.

    Yes, I’m going to let author know about this too.


    I think it’s down to a filter in the controllers/umPreloadsController.php file on line 26.

    add_filter( 'wp_mail_content_type', array( $this, 'mailContentType' ) );

    This will make ALL emails sent via the wp_mail() function have the content type specified in the User Meta -> Settings page (admin.php?page=user-meta-settings).

    Comment that line out by putting a double slash before it (//) and it should be okay again.

    Thread Starter razorteeth


    Hi Matt,

    I just reported this issue on their support forum and all I had to do to fix is,

    go to User Meta >> Settings (General Tab)
    then, select “Email Format” as “HTML” and hit Save.

    And yeah you are right on the money too, thank you so much for looking into this. Now I can keep both plugin. 🙂

    Razorteeth! Thank you a lot my friend. You are like heaven after 8.5 hours of digging the problem of html mail. Formidable Pro + User Meta. Argh and just a check box 😀

    This conflict happens even with Gravity Forms,

    I hope user-meta authors will update their (wonderful) plugin fixing this issues.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Subscribe2] Conflict with User Meta plugin’ is closed to new replies.