You Are Here: Home »   Code Tuesday January 6th 2009

Code Library - php

Html Email - (1819 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);

?>