Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have a customer of mine who has their own web/mail server. Recently, all PHP Post based mail forms have stopped functioning. No error is reported outside of the page that the user is directed to in the event of a failure in script processing (see code below):Code: Select all
<?php
$to = "aaron@domain.com";
$subject = "Request - $name";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: domain.com <admin@domain.com>\r\n";
$headers .= "Reply-To: ".$name." <".$email.">\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: iCEx Networks HTML-Mailer v1.0";
$subject = stripslashes($subject);
$message = stripslashes($message);
$body = "<font face=Arial size=-1><b>$name</b> has submited a Franchise Information Request. <br><br>
Name: <b>$name</b> <br>
Address: <b>$address</b> <br>
Comments: <br>$comments";
$success = @mail($to,$subject,$body,$headers);
?>
<P>
<?php
if($success){
include("sub_thanks.html");
}else{
include("sub_error.html");
}
?>Notice: Undefined variable: headers in E:\domains\cutterspoint\emp_sendmail.php on line 4
Notice: Undefined variable: message in E:\domains\cutterspoint\emp_sendmail.php on line 12
All submissions redirect to the sub_error.html page. This is happening on 3 different scripts on this server, and those scripts all work great on another server, so I am assuming that it is not a code issue. I am running win2k with IIS6. Any ideas?
Jeff
twigletmac | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]