Re: mail() function EXTREMELY slow

From: Date: Tue, 05 Mar 2002 18:12:58 +0000
Subject: Re: mail() function EXTREMELY slow
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-12474@lists.php.net to get a copy of this message
I personally found that messages were slow on my machine (going to an external mail server) and I discovered that if you can use the built-in IIS (Windows) SMTP mail server you'll have no more problems. The built-in IIS SMTP server was easily 1000 times faster in my case. Of course, if you don't have it installed, you may have to install and configure it, but it's very simple. Start menu - settings - control panel - add/remove programs - add windows components - Internet - default SMTP server - check the box. (Basically) Be sure you don't allow external access (preferably block all inbound connections at your firewall) or use an IP address restriction of 127.0.0.1 to prevent relaying. -James F "Ross Fleming" <r.fleming@totalise.co.uk> wrote in message news:MABBLJAPGGBPMIPHMAGBIEGJCFAA.r.fleming@totalise.co.uk... > You should be able to do it, I know I do: > > > [mail function] > ; For Win32 only. > SMTP= smtp.isp.com ; for Win32 only > > ; For Win32 only. > sendmail_from= user@isp.com ; for Win32 only > > > However, I'm aware that this is an extremely pernickity thing, and that lots > of people have problems getting it to work > > -----Original Message----- > From: Matt Hillebrand [mailto:matt@medmarket.com] > Sent: 26 February 2002 23:27 > To: r.fleming@clara.co.uk; php-windows > Subject: RE: [PHP-WIN] mail() function EXTREMELY slow > > > Yeah, I know about the max time variable, but it would be unacceptable to > take over a minute or two to send a handful of emails! > > I read an article that said you could use your ISP's SMTP server for the > mail() function, but that didn't seem to work. > > > > Matt Hillebrand > Web Developer > matt@medmarket.com <mailto:matt@medmarket.com> > > > -----Original Message----- > From: Ross Fleming [mailto:r.fleming@totalise.co.uk] > Sent: Tuesday, February 26, 2002 3:28 PM > To: Matt Hillebrand; php-windows > Subject: RE: [PHP-WIN] mail() function EXTREMELY slow > > > I hope you're not spamming... ;) > > In php.ini: > > max_execution_time=30 ; Maximum execution time of each script, in > seconds > > Change it to what you need. The speed is pretty much dependent on your SMTP > server though. > > Ross > > -----Original Message----- > From: Matt Hillebrand [mailto:matt@medmarket.com] > Sent: 26 February 2002 23:13 > To: php-windows > Subject: [PHP-WIN] mail() function EXTREMELY slow > > > I'm using the SMTP server that my company owns, but it takes forever just to > send one email message. Trying to send a batch of emails with PHP's mail() > function takes so long, that the script expires and I get an error message. > > I tried searching the archives of this list, but that search page seems to > be broken. > > Thanks! > > > Matt Hillebrand > matt@medmarket.com > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >

« previous php.windows (#12474) next »