Hey John-- Couple of ideas:
1) Is your sendmail configured as a relay? As such your PHP process may have to wait for the e-mail to be relayed before returning, which might explain why it's taking so long. The same might happen if your machine is very busy (although that has never happened to me) 2) Under IIS, you must configure a mail server in order for mail() to work, because Windows does not have an MTA similar to sendmail installed by default. You can do so in your php.ini file. Note that the MTA doesn't have to be on a separate computer--if you use Windows SMTP and configure it properly it should do just fine to use localhost as your mail host. Hope this helps. Marco On Mon, 2002-10-07 at 12:25, Negretti, John (CCI-San Diego) wrote: > Hello All, > > I have a script which is using mail() to send an e-mail message. It seems to >be working, yet taking as long as 60-65 seconds just to send the e-mail. The e-mail >has no attachments and only has one line in it. Does anyone have experience with >this issue. I am using "PHP/4.0.6" on "Linux Redhat" with "Apache/1.3.22". Also, >not to mention when I test it with IIS, I get a "Failed to Receive" error. Thanks >for any help. > > John Negretti > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php