Click to See Complete Forum and Search --> : Mail takes a whole lot of time to deliver :-/


Znupi
01-27-2008, 09:02 AM
I just installed sendmail on my Xubuntu 7.04 and when I try sending a mail with PHP, like this:

<?php

$start = microtime(true);
$mail_sent = mail("znupi69@gmail.com", "Hello there!", "Hi! This is a test mail :-)", "From: Felix Oghina <felix@status2web.ath.cx>");
$end = microtime(true);
$total_time = $end - $start;
echo "<pre>" . number_format($total_time, 2) . "s\n";
if ($mail_sent) {
echo "Mail sent!";
}
else echo "Mail not sent :-&lt;";
echo "</pre>";

?>

...the mail gets sent, but it takes about a whole minute to send it. That seems a bit too long... Is it normal? Any way to shorten this time?

Znupi
01-28-2008, 01:25 PM
um.. bump?

GavinPearce
01-31-2008, 07:25 AM
Hmmm in my shared hosting environment its not instant.

However on my dedicated server it is.

Im guessing this falls down to Sendmail config.

Looking into it at the mo, if I find anything out I'll let you know.

Znupi
01-31-2008, 12:40 PM
Thank you :)