This is my little script I use all over the place. I keep it handy in my snippets folder. It has the full list of available headers. Even can send html if you want. Test it out. All headers work. Simply comment or uncomment the headers you don't want.
<?php
$MyEmail = "myemail@mydomain.com";
$subject = "Write your subject here.";
$date = (date ("F j, Y"));
$time = (date ("H:i:s"));
$text = "
Re: ".$subject." Date: ".$date." at ".$time."
Kind Regards, YOURNAME ".$MyEmail."
---------------------------------------------------";
// comment the lines you don't want to use.
$headers = "From: SomePerson or SomeThing <myemail@mydomain.com>\n";
$headers .= "X-Sender: <myemail@mydomain.com>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: X\n"; // Urgent message! Where X is Use 1, 2 or 3 One being urgent.
$headers .= "Return-Path: <myemail@mydomain.com>\n"; // Return path for errors
$headers .= "cc: someone@domain.net, someone@domain.com\n"; // CC to
$headers .= "bcc: someone@domain.net, someone@domain.biz\n"; // BCCs to
// If you want to send html mail, uncomment the line below and write html tags in your $text area.
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
$subject = stripslashes($subject);
$text = stripslashes($text);
@mail($MyEmail, $subject, $text, $headers);
//Simple error checking. This can be deleted but it's helpful to have.
if (mail($MyEmail, $subject, $text, $headers)){
echo "<script language=\"javascript\"><!--\n";
echo "alert(\"Mail sent successfully.\");\n";
echo "//--></script>\n";
}else{
echo "<script language=\"javascript\"><!--\n";
echo "alert(\"An unknown error has occurred Email has not been sent.\");\n";
echo "//--></script>\n";
}
?>