faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

i am using mail() to send html but it shows as plain text at the client

Feb 28th, 2007 15:59
Articles Way, JOKERz, Eido Gavish,


// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
read php manual for more detail
===
www.php.net/function.mail
i hope that helps.
http://americanahost.com
http://www.qwesz.com