Menu
Hi!
I’m using a class for sending html emails to various clients, the problem is that I have a textarea that sends the content of the email, to a variable called $contents, and this variable is sent to the class like this:
$mail->Body = stripslashes($content);
the problem is that the content in the email is displayed as plain text I can see all the html tags of the message, but when I use the class with content like this:
$mail->Body = ‘<p>this is a test</p>’;
it works fine, and formats all the html as it may.
All your help appreciated!