HTML Mail assistance
$headers = "MIME-Version: 1.0" . "\r\n"; $headers = $headers."Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers = $headers."From:".$EmailFrom."\r\n"; $to=$EM; $subject=$EmailSubject; $message='<html><body>'.stripslashes(trim($WinMessage)).'</html></body>'; // Mail it mail($to, $subject, $message, $headers);
<p style="text-align: center;"> <span style="font-size:26px;"><strong>Good for you you won something .. whoopp whooop</strong></span></p>
The mail sends fine however it displays as plain text. If I remove the varable from the code: (remove stripslashes(trim($WinMessage)); and replace it with the string that the variable contains it displays fine. Can anyone identify why the mails body displays as a sting and not as HTML when I use the variable?
-
h4x0r -
Thanks
{{ DiscussionBoard.errors[8508025].message }} -
-
brutecky -
Thanks
SignatureJoin over 7500 marketers on my Facebook group and also get tons of free tutorials and software to help you with your business.{{ DiscussionBoard.errors[8508051].message }} -
-
hngems -
Thanks
{{ DiscussionBoard.errors[8517525].message }} -