send-email-with-headers.php
<?php
$headers = "From:[email protected]\r\n";
$headers .= "Reply-To:[email protected]\r\n";
$headers .= "Content-Type: text/plain;\r\n charset=iso-8859-1\r\n";
mail("[email protected]", "This is the subject",
"This is the mail body", $headers);
?>
Related examples in the same category