I'm doing an HTTP Get vars because the source .html is a get request: <form action="sendmsg.php" id="partsform" name="partsform">
Below is the php code in the php file. I do not receive any email, can anyone tell me why? I originally tried http post vars with method post, but nothing happened either, so i tried get vars with a method get. Can anyone tell me why I get no PHP error but also no email?
Thank You
MK
<?php
$HTTP_GET_VARS['FullName'];
$HTTP_GET_VARS['address'];
$HTTP_GET_VARS['city'];
$HTTP_GET_VARS['country'];
$HTTP_GET_VARS['state'];
$HTTP_GET_VARS['zip'];
$HTTP_GET_VARS'[phone'];
$HTTP_GET_VARS['description'];
$HTTP_GET_VARS['email'];
$text="<html><head><div align="center"><b>Consumer Service Request</b></div></head><br><br><body>Dear <?php echo $FullName;?><br><br>Great service. One person at a time. You’re our main concern; and we mean exactly that. Whatever questions, comments or concerns you may have, we, at the Consumer Service Department, will always treat you as an individual. Your request is important to us. Please allow sufficient time before we contact you. <br><br>Thank-You</body><br><br><br>Consumer Service Department<br>Rountable Inc..<br>4505 Rd.<br>RR1 ON<br>CANADA<br><br>info@rdtable.com</html>";
$from="info@rdtable.com";
$to="bkaushal@rdtable.com";
$subject="Consumer Services Form";
$file="gros_logo.jpg";
$type="image/gif";
sendmsg();
function sendmsg($to, $subject, $text, $from, $file, $type) {
$content = fread(fopen($file,"r"),filesize($file));
$content = chunk_split(base64_encode($content));
$uid = strtoupper(md5(uniqid(time())));
$name = basename($file);
$header = "From: $from\nReply-To: $from\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Content-Type: multipart/mixed; boundary=$uid\n";
$header .= "--$uid\n";
$header .= "Content-Type: text/plain\n";
$header .= "Content-Transfer-Encoding: 8bit\n\n";
$header .= "$text\n";
$header .= "--$uid\n";
$header .= "Content-Type: $type; name=\"$name\"\n";
$header .= "Content-Transfer-Encoding: base64\n";
$header .= "Content-Disposition: attachment; filename=\"$name\"\n\n";
$header .= "$content\n";
$header .= "--$uid--";
mail($to, $subject, "", $header);
return true;
}
?>
<html>
<head><title>Consumer Services</title></head>
<body>
<br>
<h2>Thank You for your submission, the information was sent sucessfully</h2>
<a href="http://www.rdtable.com/" target="_self">Home Page</a>
</body>
</html>