problem with mail()
| From: | jdavis | Date: | Fri, 26 Mar 2004 02:41:14 +0000 |
| Subject: | problem with mail() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181536@lists.php.net to get a copy of this message | ||
hello, I have a php script that
i have ran on a linux and bsd box, on both boxes the script will work and sendmail for a while, then
it just seems to stop working. Does anyone have a idea why this is.
thanks,
--
jdavis <jd@taproot.bz>
<?php
header("Location: http://www.xxx.com/CSacknowledge.html");
$sendTo = 'sburke@xxx.com';
$subject = 'Cutomer Service Request';
$body = "Customer Service Request \n\n";
$body .= "ip : " . $_SERVER['REMOTE_ADDR'] . "\n";
$body .= "date : " . date("l dS of F Y h:i:s A") . "\n";
foreach($_POST as $key => $value){
if($value != NULL){
if($value == "checkboxValue" ){
$value = "Add to Mailing List";
}
$body .= "$key : $value\n";
}
}
mail($sendTo,$subject,$body);
?>