LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   sendmail is sending unnecessary multiple copies of emails from php form (https://www.linuxquestions.org/questions/linux-server-73/sendmail-is-sending-unnecessary-multiple-copies-of-emails-from-php-form-780534/)

swg1cor14 01-07-2010 08:24 AM

sendmail is sending unnecessary multiple copies of emails from php form
 
I have a 64bit linux server with 5 virtual hosts on it. When someone fills out a contact form on one of the sites...I get 15-20 copies of the same email. At first I thought it was the kids clicking send multiple times because the first emails were coming from the children's ministry "Email The Cast" section. But then I started getting multiples from the adult sites too. All contact forms are set to come to me.

What's stranger is that my registration section for one of the sites uses the SAME php script (different file) to email me a notification that someone has registered but I only get 1 copy of that.

What could be going on?

What more info do you need to help me trouble shoot this?

swg1cor14 01-07-2010 08:25 AM

The email script....

PHP Code:

<?PHP

$theName 
$_REQUEST["theName"];
$theEmail $_REQUEST["theEmail"];
$theMessage $_REQUEST["theMessage"];

$to "support@forwardconference.org";
$subject "Forward Conference Info Request";
$message "Name: " $theName;
$message .= "\nEmail: " $theEmail;
$message .= "\n\nMessage: " $theMessage;
$headers "From: $theEmail";
$headers .= "\nReply-To: $theEmail";

$sentOk mail($to$subject$message$headers);

echo 
"sentOk=" $sentOk;

?>



All times are GMT -5. The time now is 01:20 PM.