ok here it is...this script will not send to my corporate email still but i can get it to my hotmail account (thats another issue that i am trying to workout)..however i was perusing the web and read up on headers. so i added in a bunch of them hoping it would help get the email past my companys firewall. alas nothing, but now when i send it to my hotmail account the message doestn show up. the email is there but it is blank. if i remove the headers then the message shows up. i dont really understand most of the headers and what they do so really if anyone can explain that would be helpful. also what is "boundary=" and what is $seperator? are these reserved variables in php or something?
<signature>
sometime you just gotta say "WHAT THE @#*% !!"
</signature>
Code:
<? if (!isset($email)){
header("Location: [URL unfurl="true"]http://www.cascadecorp.com/register.php");[/URL]
}
else {
$msg = "MR/MRS:\t$mr\n";
$msg .= "First Name:\t$first\n";
$msg .= "Last Name:\t$last\n";
$msg .= "Middle Initial:\t$middle\n";
$msg .= "JR/PHD/ETC:\t$jr\n";
$msg .= "Email:\t$email\n";
$msg .= "Phone Number:\t$phone\n";
$msg .= "Fax:\t$fax\n";
$msg .= "Title:\t$title\n";
$msg .= "Company:\t$company\n";
$msg .= "Street1:\t$street1\n";
$msg .= "Street2:\t$street2\n";
$msg .= "City:\t$city\n";
$msg .= "State:\t$state\n";
$msg .= "Country:\t$country\n";
$msg .= "Zip:\t$zip\n";
$msg .= "Job:\t$job\n";
$msg .= "Function:\t$function\n";
$msg .= "Do They Want More Info In The Future:\t$info\n";
$header = "From: $first<$email>\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Reply-To: <$email>\n";
$header .= "Content-Type: multipart/alternative; charset=\"iso-8859-1\"; boundary=\"$separator\";\r\n\r\n";
$header .= "Content-Transfer-Encoding: 8bit\r\n";
$header .= "X-Priority: 3\r\n";
$header .= "X-Mailer: phpmailer [version 1.40]\r\n";
$header .= "Return-Path: $email\r\n";
mail("darrync@hotmail.com", "Register for Case Histories on Cascadepromotions.com",
$msg, $header);
}
?>
<signature>
sometime you just gotta say "WHAT THE @#*% !!"
</signature>