mail() - very slow (sory for previous post)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Sorry for my previous post (forget to change language)

I use mail().
Postfix configured locally - properly - works fine and fast.
But when i use mail() it's processed about 60 seconds.
After that mail is delivered properly.

But - why so slow ???


Re: mail() - very slow (sory for previous post)

vertigo wrote:
Quoted text here. Click to load it

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      = '';
$subject = 'the subject';
$message = 'hello';
$headers = 'From:' . "\r\n" .
            'Reply-To:' . "\r\n" .
            'X-Mailer: PHP/' . phpversion();

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

Site Timeline