Hello!
Issue:
I found some advice on how to send the welcome emails in HTML format. But the solutions seems to be prone to be erase everytime I upgrade s2member.
Is there a way to use a hack or hook to make this not be erased? I’d want registration welcome email AND payment emails to be HTML formatted.
Thanks!
Angie
Solution From Previous Post
This is what I found in this post:
http://www.s2member.com/forums/topic/html-in-welcome-emails/
File: s2member\includes\classes\email-configs.inc.php line 242
Change this:
c_ws_plugin__s2member_email_configs::email_config () . wp_mail ($user->user_email, $sbj, $msg, "From: \"" . preg_replace ('/"/', "'", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_name"]) . "\" <" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_email"] . ">\r\nContent-Type: text/plain; charset=utf-8") . c_ws_plugin__s2member_email_configs::email_config_release ();
To This: (notice the change in “Content-Type: text/html”)
c_ws_plugin__s2member_email_configs::email_config () . wp_mail ($user->user_email, $sbj, $msg, "From: \"" . preg_replace ('/"/', "'", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_name"]) . "\" <" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["reg_email_from_email"] . ">\r\nContent-Type: text/html; charset=utf-8") . c_ws_plugin__s2member_email_configs::email_config_release ();