You Are Here Home > Send HTML emails
Resource Index Web Directory

Send HTML emails

To send HTML emails, you will need special email headers:

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: FROM-EMAIL@YOURDOMAIN.COM\r\n"
                ."Reply-To: REPLY-EMAIL@YOURDOMAIN.COM";
mail('TO EMAIL ADDRESS', 'SUBJECT LINE', 'Message Body<br /><small>With some HTML</small>', $headers);
Send HTML emails
Filed under: PHP   Posted by: Codehead
Do you have any questions? ask here.




No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment