468,290 Members | 2,121 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

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

Hello

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 ???

Thanx
Apr 8 '07 #1
1 2146
vertigo wrote:
Hello

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 ???

Thanx
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:

<?php
$to = 'n*****@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: we*******@example.com' . "\r\n" .
'Reply-To: we*******@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

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

Apr 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by herbert | last post: by
34 posts views Thread by antonyliu2002 | last post: by
8 posts views Thread by Michel Posseth [MCP] | last post: by
12 posts views Thread by Andrew C | last post: by
4 posts views Thread by =?Utf-8?B?dHBhcmtzNjk=?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.