got a strange and frustrating situation;
using a pretty simple php mail() script. when i hit the 'submit' button, it takes anywhere from 7-60 seconds to sumit the form.
HOWEVER, on two other servers it's instant. all three servers are linux w/ sendmail. the two that process the form instantly are shared hosting servers, and the 'slow' server is a dedicated server!
the information in phpinfo(); for sendmail is the same for all three.
here's the form w/ mail();
$datePosted = date("l dS of F Y h:i:s A");
// Read POST request params into global vars
$FName = $_POST['FName'];
$LName = $_POST['LName'];
$CName = $_POST['CName'];
$BType = $_POST['BType'];
$Address1 = $_POST['Address1'];
$Address2 = $_POST['Address2'];
$City = $_POST['City'];
$State = $_POST['State'];
$Zip = $_POST['Zip'];
$Country = $_POST['Country'];
$Phone = $_POST['Phone'];
$Fax = $_POST['Fax'];
$Email = $_POST['Email'];
$referrer = $_POST['referrer'];
$comments = $_POST['comments'];
$comments = stripslashes($comments);
////////////////////////////////////
// START OF MAIL CODE
////////////////////////////////////
$to = "1@1.com";
$cc = "1@1.com";
$bcc = "1@1.com";
$from = "1@1.com";
$subject = "Contact from [email]1@1.com[/email]";
$headers = "From: $from\n";
$headers .= "CC: $cc\n";
$headers .= "Bcc: $bcc\n";
$message = "Contact From [email]1@1.com[/email] - $datePosted
=============================================================================
Name: $FName $LName
Company: $CName
Type of Business: $BType \n
Address:
$Address1
$Address2
$City
$State, $Zip
$Country \n
Phone: $Phone
Fax: $Fax
Email: $Email
Referred: $referrer
Comments:
$comments
";
// Send the message
@mail($to, $subject, $message, $headers);
////////////////////////////////////
// END OF MAIL CODE
////////////////////////////////////
any thoughts or similar experiences would be greatly appreciated.
thank you.