Forum Moderators: coopster
I'm running into a similar issue on a test box:
Apache 2.0.48 (Win32) binary
PHP/5.0.0b4 installed as module
SMTP mail.myisp.net (The MTA is a remote machine)
I'm not running an SMTP server locally. The message is sent, but the script stops running...and I am confused.
What does your setup look like?
this is well weird.
I am running the same package from firepages. All that has changed is my OS. From Win 2000 to XP pro.
Every other script is quick and fast.
Do you reckon it could be due to incorrect headers? Here are mine:
$to = "the@emailaddress.com";
$subject ="The Mail Subject";
$message = "The message";
$headers .= "From: Somebody<abc@server.com>\n";
$headers .= "X-Sender: <def@server.com>\n";
$headers .= "X-Mailer: PHP\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <mail@server.com>\n";
// Uncomment this to send html format
//$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
// $headers .= "cc: [email]some@address.com[/email]\n"; // CC to
// $headers .= "bcc: [email]mail@server.com[/email]"; // BCCs to, separete multiple with commas [email]mail@mail.com[/email], [email]mail2@mail.com[/email]
$send = mail($to,$subject,$message,$headers);
echo $send;
$to = 'me@mycompany.com';
$subject = 'test';
$message = 'test';
mail($to, $subject, $message);
print 'Message sent';
No, I haven't tried CGI. I already searched the bugs since it is a beta version but came up empty. Where did you find that report, bcolflesh? Could you post or sticky-mail the link?
OK, now it gets interesting. I was stopping and restarting Apache, but that did nothing. So I reboot the pc and we're back in business. Stupid Windows.
ukgimp, bcolflesh brought up another issue in the stickymail and that is the fact that your external server may be burdened with workload because of the fresh viruses backing things up (netsky and mydoom). It may be that the external server is not responding and causing your script to time out or hang. He has a valid consideration.