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=<[EMAIL PROTECTED]>, [EMAIL PROTECTED]

 Jun 12 19:25:30 pippi sendmail[95212]: h5CHPP6h095212:
from=<[EMAIL PROTECTED]>, size=293, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA,
relay=localhost [127.0.0.1]

 Jun 12 19:25:30 pippi sendmail[95212]: h5CHPP6h095212: to=<[EMAIL PROTECTED]>,
delay=00:00:00, mailer=esmtp, pri=30289, stat=queued

 Jun 12 19:25:30 pippi sendmail[95211]: h5CHPKZu095211: [EMAIL PROTECTED],
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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to