Sunday, November 30, 2008

Mail Queuing in CakePHP

Hi,

In my rewrite of a system into CakePHP, I need to implement a Mail
Queue (storing mail messages in a database for later sending in order
not to overwhelm the SMTP server). My previous application used the
PEAR Mail::Queue class for this, and it always worked perfectly.

I've searched for similar Cake options, but haven't really found
anything comparable. My options therefore seem to be:

1. Integrate the PEAR class into my application.

- Searching for people who have attempted this gives
http://bakery.cakephp.org/articles/view/integrating-pear-pager as the
top result. The wrapper code seems rather extensive.

2. Integrate a Zend Framework class

- I've never used Zend Framework before, but it looks very interesting
and seems to have less overhead than PEAR. This tutorial:

http://bakery.cakephp.org/articles/view/integrating-zend-framework-lucene-with-your-cake-application

seems to be a pretty tight example of how to integrate the two
frameworks/elements.

3. Write my own

- I'm not particularly keen to do this unless I have to, partly due to
laziness and partly due to the feeling that this sort of thing should
be standardised as with PEAR. There is some previous discussion on
doing this here:

http://groups.google.com/group/cake-php/browse_thread/thread/44fac5e4c87ad053.


I would really appreciate any comments on this, either specifically as
to the best way to do Mail Queing or in general as to implementing
other frameworks into CakePHP.

Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: