$contextstr = $username ."'s Warranty Registration Information.
";
$contextstr = $contextstr ."=========================================
";
$contextstr = $contextstr ."Customer Information
";
$contextstr = $contextstr ."=========================================
";
$contextstr = $contextstr ."Name: ". $username ."
";
$contextstr = $contextstr ."Sex: ". $SexRb ."
";
$contextstr = $contextstr ."Country: ". $countryslt ."
";
$contextstr = $contextstr ."Email: ". $emailTxt ."
";
$contextstr = $contextstr ."=========================================
";
$contextstr = $contextstr ."Product Information
";
$contextstr = $contextstr ."=========================================
";
$contextstr = $contextstr ."Serial Number:". $SNTxt ."
";
$contextstr = $contextstr ."Dealer Name:". $DNameTxt ."
";
$contextstr = $contextstr ."Purchase Date:". $PMTxt ."/". $PDTxt ."/". $PYTxt ."
";
$contextstr = $contextstr ."=========================================
";
$contextstr = $contextstr ."Fill DateTime:". date("Y-m-d H:i:s") ."
";
$contextstr = $contextstr ."=========================================
";
$contextstr = $contextstr ."Submit Form AltusLumen product's Website.";
if ($submitok == "fillok")
{
$to = "sales@altuslumen.com";
$subject = $username ."'s Warranty Registration Mail";
$msg = $contextstr;
$headers = "From: " . $emailTxt ."\r\n" .
"Reply-To: " . $emailTxt ."\r\n" .
"X-Mailer: PHP/" . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-type: text/html; charset=gb2312\r\n";
if(mail("$to", "$subject", "$msg", "$headers"))
{ echo "Your Warranty Registration has been sent. Thanks."; }
else
{ echo "Your Warranty Registration can not send mail.
Please check your email."; }
}
?>