Jump to content

transforming text form to html


casey_00

Recommended Posts

hey was wondering what i have to add to get the email sending as html instead of just text... all working fine but when i add html tags it comes through too. any help?

 

eg

<strong>Name</strong>    : test

 

<strong>Company</strong>: none

 

<strong>Email</strong>     :

[email protected]

 

<strong>Subject</strong> : test

 

<strong>Message</strong>: test

 

Link to comment
https://forums.phpfreaks.com/topic/49287-transforming-text-form-to-html/
Share on other sites

Simply including HTML tags is not enough. You must actually change the Content-type of the email and the encoding to one which will support the HTML characters. Do a Google search for "send html email in php" or similar, and you will find some good resources.

 

Here is one from Zend.

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.