latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

HTML in s2Member emails

Home Forums Community Forum HTML in s2Member emails

This topic contains 0 replies, has 1 voice. Last updated by  Roger Lear 3 years, 1 month ago.

Topic Author Topic
Posted: Friday Dec 6th, 2013 at 4:22 pm #61722

I’m aware that this is a perennial question for s2-generated emails (like the welcome email) so I have spent quite some time today looking at what has been said in the community. The best response seems to be in a post form last year, in particular this contribution from leopol001 here: http://www.s2member.com/forums/topic/html-in-welcome-emails/#post-13320.

So what I have done is created /wp-content/mu-plugins/s2-hacks.php and then entered this code to set the content type used by wp_mail to html.

This seems to work nicely, but in the WP Codex (http://codex.wordpress.org/Function_Reference/wp_mail#Parameters), I read

Be careful to reset ‘wp_mail_content_type’ back to ‘text/plain’ after you send your message, though, because failing to do so could lead to unexpected problems with e-mails from WP or plugins/themes.

How do I reset the content type ?

Thanks,

R.

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.