[Resolved] [Plugin: Subscribe2] Conflict with User Meta plugin
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="http://www.audacityhealth.com/2012/08/the-story-behind-audacity-health/">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="http://www.audacityhealth.com/2012/08/the-story-behind-audacity-health/">http://www.audacityhealth.com/2012/08/the-story-behind-audacity-health/</a><br /> <br /> If you would like to adjust your email notification settings or unsubscribe from this list follow <a href="http://www.audacityhealth.com/wp-admin/admin.php?page=s2">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!
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.
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.
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 😀
- The topic ‘[Resolved] [Plugin: Subscribe2] Conflict with User Meta plugin’ is closed to new replies.