On 13-Jun-2003 Marko 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!

It's likely the other boxes are set to queue only or queue at lower loads.
Delivery is done later in the background.

try one of the option string:

'-O DeliveryMode=b'
 -- or, if you can wait for a queue run --
'-O DeliveryMode=q'

mail($to, $subj, $msg, $hdrs, '-O DeliveryMode=q');

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

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

Reply via email to