Jump to content

[SOLVED] HTML email Class Help


elpaisa

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.