Monday, December 1, 2008

Re: Mail Queuing in CakePHP

Thanks for your reply; I also had another (private) reply suggesting
that SwiftMailer (http://swiftmailer.org/) would be a good fit. It
doesn't have DB-based mail queuing as such, but it does have AntiFlood
(http://swiftmailer.org/wikidocs/v3/plugins/antiflood) to prevent
killing the SMTP server. Several people seem to have intergrated it
well with CakePHP (eg http://blog.aboutme.be/2008/05/07/cakephp-swiftmailer-3-component/).

So, I'll try that out and see how it goes I think!

On Dec 1, 5:53 am, Adam Royle <a...@sleekgeek.com.au> wrote:
> The reason why there is no standard thing in cake is because it's very
> 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 aMail
> >Queue(storingmailmessages in a database for later sending in order
> > not to overwhelm the SMTP server). My previous application used the
> > PEARMail::Queueclass 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-pagerasthe
> > 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 doMailQueing 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: