elpaisa Posted July 28, 2008 Share Posted July 28, 2008 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! Link to comment https://forums.phpfreaks.com/topic/116927-solved-html-email-class-help/ Share on other sites More sharing options...
elpaisa Posted July 28, 2008 Author Share Posted July 28, 2008 solved => html_entity_decode($content) Link to comment https://forums.phpfreaks.com/topic/116927-solved-html-email-class-help/#findComment-601319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.