Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- mail() - very slow (sory for previous post)
April 8, 2007, 3:25 pm
rate this thread
Re: mail() - very slow (sory for previous post)
Are you using the optional "Headers" section of the mail command? I've
had some servers that refuse to send mail without a specified From:
address in the mail command, try setting your valid From address and see
if it helps.
eg. as in the PHP manual:
$to = 'email@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: firstname.lastname@example.org' . "\r\n" .
'Reply-To: email@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);