easy to code but a few different ways to accomplish!
You could use the following code as a starting guide ... (very similar
to the code you linked to, but I didn't see it before, woops!)
http://bin.cakephp.org/saved/40161
You could use integrate pear or zend solutions into that __queue
method, but I reckon it'd be just as easy using cake's db or file
methods and write it all yourself!
If you want to be all cake-like, then you could make a cakeshell class
to do the sending.
Cheers,
Adam
On Dec 1, 11:14 am, boyracerr <benjamins...@gmail.com> wrote:
> 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 giveshttp://bakery.cakephp.org/articles/view/integrating-pear-pageras 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-lu...
>
> 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/44fac5e4....
>
> 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:
Post a Comment