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

Your name:

Reply:


Posted by Tyno Gendo on 04/08/07 23:34

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

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация