jarv
08-30-2011, 11:42 AM
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, webmaster@affordableappliancerepairs.co.uk 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:
<?php
error_reporting(E_ALL);
print_r($_POST);
include_once("config.php");
$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
<html>
<body>
<p>$EmailBody</p>
</body>
</html>
EOF;
//end of message
$headers = "From: info@affordableappliancerepairs.co.uk\r\n";
$headers .= "Content-type: text/html\r\n";
//options to send to cc+bcc
//$headers .= "Cc: maa@p-i-s.cXom";
//$headers .= "Bcc: email@maaking.cXom";
// now lets send the email.
mail($to, $EmailTitle, $message, $headers);
$msg = "Mass email sent";
header("Location: send-mass-email.php?msg=$msg");
?>
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@affordableappliancerepairs.co.uk 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:
<?php
error_reporting(E_ALL);
print_r($_POST);
include_once("config.php");
$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
<html>
<body>
<p>$EmailBody</p>
</body>
</html>
EOF;
//end of message
$headers = "From: info@affordableappliancerepairs.co.uk\r\n";
$headers .= "Content-type: text/html\r\n";
//options to send to cc+bcc
//$headers .= "Cc: maa@p-i-s.cXom";
//$headers .= "Bcc: email@maaking.cXom";
// now lets send the email.
mail($to, $EmailTitle, $message, $headers);
$msg = "Mass email sent";
header("Location: send-mass-email.php?msg=$msg");
?>