Re: slow mail()

From: Date: Fri, 13 Jun 2003 13:31:39 +0000
Subject: Re: slow mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151355@lists.php.net to get a copy of this message
Are you sending these in a loop? Write out something as each mail is sent, the email address is useful, plus an OK or FAIL depending on what mail() returned. Also, don't enclose this in a table as on some browsers nothing will display until the closing table tag is received. You might also investigate flush() (I think) . HTH -Miles Thompson At 03:19 PM 6/13/2003 +0200, you wrote:
Hi all, Sending multiple emails using PHP - as BCC or multiple mail() commands - takes quite long; usually over 50 seconds for 10 addresses. While sending these messages the browser won't show anything else but a blank page, which is not a very exciting internetexperience for people using my mailing-application. I've been using exactly the same code on some other boxes without any extreme delays. The box is running Sendmail 8.12.9, PHP 4.3.1 on FreeBSD 4.8. Any help greatly appreciated! The maillog says: Jun 12 19:25:20 pippi sendmail[95211]: h5CHPKZu095211: from=nobody, size=56, class=0, nrcpts=1, msgid=<200306121725.h5CHPKZu095211@pippi.half2.nl>, relay=nobody@localhost Jun 12 19:25:30 pippi sendmail[95212]: h5CHPP6h095212: from=<nobody@pippi.half2.nl>, size=293, class=0, nrcpts=1, msgid=<200306121725.h5CHPKZu095211@pippi.half2.nl>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] Jun 12 19:25:30 pippi sendmail[95212]: h5CHPP6h095212: to=<marko@dsv.nl>, delay=00:00:00, mailer=esmtp, pri=30289, stat=queued Jun 12 19:25:30 pippi sendmail[95211]: h5CHPKZu095211: to=marko@dsv.nl, ctladdr=nobody (65534/65534), delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=30052, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (h5CHPP6h095212 Message accepted for delivery) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#151355) next »