You Are Here: Home »   Code Friday September 3rd 2010

Code Library - php

Html Email - (2027 views)


<?PHP

$to 
somebody@mail.com;
$subject "Your Subject";
$headers "From: Your Name\r\n";
$headers .= "Reply-To: you@yourmail.com\r\n";
$headers .= "Return-Path: you@yourmail.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

$message "<html><body><p>Your Message</p></body></html>";

mail($to,$subject,$message,$headers);

?>