// Edit below //
$compName = "Site Corp.";
$myWsite = "http://www.website.com";
$webSite = "WEBSITE.COM";
$toMe = "appanos@hotmail.com";
$subject = "New email from my website!";
// Message for the autoresponding email sent to the customer...
$autoRmessage = "Thank you for submitting your inquiry to us. We will get back to you as soon as possible.";
//After they send the info tell them...
$thanks = "Your message was sent. Thank you!";
// STOP EDITING /////////////////////////
$Comment = stripslashes($Comment);
$msgBody = 'First Name: ' . $FirstName . '\r\nLast Name: ' . $LastName . '\r\nPhone Number: ' . $PhoneNumber . '\r\nE-mail: ' . $Email . '\r\nFax: ' . $Fax . '\r\nInterest: ' . $Interest . '\r\nChannel: ' . $Channel . '\r\nWhy Yoga: ' . $Why_yoga . '\r\nAddress: ' . $Address . '\r\nComment: ' . $Comment . '\r\n';
$toCustomer = stripslashes($Email);
$sig = "\r\n********************************************************\r\n";
$sig .= $compName . "\r\n";
$sig .= $myWsite;
$printConf = "<HTML><HEAD><TITLE>Processing Form</TITLE></HEAD><BODY BGCOLOR=#D5D5AB>" . $thanks . "</body></html>";
$autoRmessage .= $sig;
$message .= $sig;
$headers = "From: " . $compName . "<$toMe>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1";
if ($GLOBALS[SERVER_ADMIN]) {
$headers .= "\r\nX-AntiSpam: Server Administrator " . $GLOBALS[SERVER_ADMIN] . "\n";
}
$headers .= "\r\X-mailer: " . $webSite . " PHP/EMAIL\n";
@mail($toMe, $subject, $msgBody, $headers);
@mail($toCustomer, $compName, $autoRmessage, $headers);
//Redirection to a thank you page goes here.
This website is hosted with a hosting company, not on my machine. You think there might be a problem with their email server? What would that problem might be?
Also, the headers that you see above are the result of a constant change and testing in an attempt to exclude the possibility that they might cause the problem.
Thank you for your responces.
Panos A.