Re: Re: Mail_Queue problem

From: Date: Fri, 28 May 2004 18:55:04 +0000
Subject: Re: Re: Mail_Queue problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12777@lists.php.net to get a copy of this message
On Fri, 28 May 2004 11:06:35 -0700, Tyrone wrote: > Thanks Lorenzo, > That helped. However, now it seems that everytime I run the script > it sends out exactly half of the mail in the mail_queue rather than > the whole thing. Is this by design? Any way to get around this and > send out the whole queue at one time? Thanks again. sendMailsInQueue() by default will send all the mails in the queue, unless you specify a $limit (default is MAILQUEUE_ALL) and an $offset. if you choose the while cycle: while ($mail = $mail_queue->get()) { $result = $mail_queue->sendMail($mail); } it should fetch all the mails in the queue as well. If not, there's a problem indeed. Which driver are you using? DB or MDB? Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo

« previous php.pear.general (#12777) next »