I did have that similar problem when it took about a minute or two on unix machine. It turn out to be a DNS issue, so the successful workaround I made was to use the host file instead in /etc/hosts by added the machine name to it since that what the sendmail use. Maybe this is in your case? --snip-- <ip address> <machine name> <machine name dot domain name dot com/org/net> --snip-- Scott "Paul Danko" <pdanko@xxxxxxxxxxx> wrote in message news:016101c4cd9e$62077800$f506a8c0@xxxxxxxx > I am building an application that uses the mail() command. I am running > on RedHat v9 with Apache v2 and PHP v4.3.8. The problem is, when I run > the mail() function, the submitting page is very slow (1-2 seconds), I > assume because it is waiting for the message to be queued up by > SendMail. Is there a way to fire off the mail command as a thread, > similar to the way to issues a command via the command prompt followed > by & to run it as a thread. > > Any ideas? > > Thanks, > > -Paul > > ------------------------------------------------ > Paul Danko > pdanko@xxxxxxxxxxx > 443.677.7279 Mobile > 301.883.8881 x 127 Office > ------------------------------------------------ > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php