I am trying to create a PHP mailer. however when the page runs, I recieve the following message:
forward: no home
forward: no home
HTTP/1.1 200 OK
Date: Mon, 15 Dec 2003 18:40:45 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.2
X-Powered-By: PHP/4.3.2
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
cc2
This is the code I am running:
$MyEmail = 'nate@lasvegasdirectory.com';
$Sender = 'general@lvdmail.com';
$subject = 'This is a test';
$text = "
test
";
// comment the lines you don't want to use.
$headers = "To: " . $MyEmail . "\n";
$headers = "From: " . $Sender . "\n";
//$headers .= "X-Sender: ". $MyEmail. "\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: X\n"; // Urgent message! Where X is Use 1, 2 or 3 One being urgent.
$headers .= "Return-Path: " . $Sender . "\n"; // Return path for errors
//$headers .= "cc: someone@domain.net, someone@domain.com\n"; // CC to
//$headers .= "bcc: natework@lasvegasdirectory.com\n"; // BCCs to
// If you want to send html mail, uncomment the line below and write html tags in your $text area.
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
$subject = stripslashes($subject);
$text = stripslashes($text);
@mail($MyEmail, $subject, $text, $headers);
//Simple error checking. This can be deleted but it's helpful to have.
if (mail($MyEmail, $subject, $text, $headers)){
echo "Thank you for your submission. Your scheduling request has been sent successfully. I will be in touch with you shortly";
}else{
echo "An unknown error has occurred request has not been sent. Please contact me at ";
}
I have never seen this error before. Any thoughts?