On 05/14/2010 11:36 AM, Ralf Eggert wrote:
Hi,
I want to use Zend_Queue to send bulk mails (newsletters). These
newsletters are individualized. I think I have two general options how
to handle this:
a) Create all Zend_Mail objects and send them serialized to the
Zend_Queue. When the queue is processed, I only need to send these
mails out.
b) Just send the parameters in the Zend_Queue (user id, newsletter
id). When the queue is processed I create the Zend_Mail objects
from these parameters and send them out.
If I were to use Zend_Queue, I'd recommend option b.
If you want to take a look at how we do it, visit
http://projects.binaryvibes.co.in/repositories/entry/bizsense/trunk/application/modules/default/models/Newsletter/Message/Queue.php
We don't use Zend_Queue though. We store all the required information in
message_queue table and process the queue via cron.
--
With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in