rendered paste body<?php
$mail = $_POST['mail'] ;
$message = $_POST['message'] ;
$cname = $_POST['cname'] ;
$ctele = $_POST['ctelephone'] ;
$caddress = $_POST['caddress'] ;
$cemail = $_POST['cemail'] ;
$vendorpn = $_POST['vendorpn'] ;
$sbillingadd = $_POST['sbillingadd'] ;
$sshippingadd = $_POST['sshippingadd'] ;
$cperson = $_POST['cperson'] ;
$billing = $_POST['billingsame'];
$shipping = $_POST['shippingsame'];
$selected_radio = $_POST['contactmethod'];
$check_box = $_POST['addressame'];
$http_referrer = getenv( "HTTP_REFERER" );
$formurl = "http://www.jmcomputer.ca/Dealer%20Form.html" ;
$errorurl = "http://jmcomputer.ca/error.html" ;
$thankyouurl = "http://www.jmcomputer.ca/thanks.html" ;
$mailto = 'hanpc14@gmail.com' ;
$subject = "Dealer Application Form" ;
$messageproper =
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------------------------------------------\n" .
"Name: $cperson\n" .
"Email: $cemail\n"
"Company Name: $cname\n"
"Address : $caddress\n" .
"Shipping Address: $sshippingadd\n" .
"Billing Address: $sshippingadd\n" .
"Phone : $ctele\n" .
"------------------------- COMMENTS -------------------------\n\n" .
mail($mailto, $subject, $messageproper,
"From: \"$cperson\" <$mail>" . $headersep . "Reply-To: \"$cname\" <$cemail>" . $headersep . "X-Mailer: chfeedback.php 2.07" );
header( "Location: $thankyouurl" );
?>