Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Internal Server error
08-30-2011, 12:42 PM #1
- Join Date
- Mar 2007
- Thanked 0 Times in 0 Posts
Internal Server error
please help, I get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2 Server at www.affordableappliancerepairs.co.uk Port 80
here is my code:
$EmailTitle = mysql_real_escape_string($_POST['EmailTitle']);
$EmailBody = mysql_real_escape_string($_POST['EmailBody']);
$id = mysql_real_escape_string($_POST['id']);
$query5 = mysql_query("SELECT * FROM aarbookts_booking_bookings WHERE id = '$id'");
$row5 = mysql_fetch_array($query5);
$customer_name = $row5['customer_name'];
$to = $row5['customer_email'];
$subject = $EmailTitle;
$message = <<<EOF
//end of message
$headers = "From: email@example.com\r\n";
$headers .= "Content-type: text/html\r\n";
//options to send to cc+bcc
//$headers .= "Cc: [email]firstname.lastname@example.orgXom[/email]";
//$headers .= "Bcc: [email]email@example.comXom[/email]";
// now lets send the email.
mail($to, $EmailTitle, $message, $headers);
$msg = "Mass email sent";
08-30-2011, 01:45 PM #2
- Join Date
- Jul 2011
- Thanked 171 Times in 171 Posts
like the error tells you, check the error log Get back to us with any information out of that. It's most likely a configuration error in Apache, or a conflict with your script and your configuration.