
devin.austin at gmail
Jul 20, 2010, 8:55 AM
Post #4 of 4
(1030 views)
Permalink
|
|
Re: C::V::Email::Template: how to use from cron
[In reply to]
|
|
On Tue, Jul 20, 2010 at 9:48 AM, Enno van Amerongen <enno [at] tty> wrote: > Thanks Devin, that's what I was thinking as well. Too bad we can't reuse > the C::V::Email::Template code though. > > Enno > > Devin Austin wrote: > >> No reason you should have to do this through C::V::Email::Template. You >> could just write a batch script that processes the template, and sends the >> rendered data as it would be through the view. >> >> On Tue, Jul 20, 2010 at 7:43 AM, Enno van Amerongen <enno [at] tty <mailto: >> enno [at] tty>> wrote: >> >> Hi list, >> >> We're currently busy implementing Catalyst::View::Email::Template >> to take care of sending all our templated mail. >> >From within Catalyst this is easy to use and works. >> >> The problem is, we need to send email batches as well and want to >> reuse the same templated mail setup, but how do you call >> Catalyst::View::Email::Template, including its processing, without >> calling it through a webserver. Is this possible at all? >> >> Thanks in advance, >> >> Enno van Amerongen >> >> >> _______________________________________________ >> Catalyst-dev mailing list >> Catalyst-dev [at] lists <mailto:Catalyst-dev [at] lists> >> >> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev >> >> >> >> >> -- >> Devin Austin >> http://www.codedright.net >> 9702906669 - Cell >> ------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Catalyst-dev mailing list >> Catalyst-dev [at] lists >> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev >> >> > > > > _______________________________________________ > Catalyst-dev mailing list > Catalyst-dev [at] lists > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev > Whoops, top posted last time. Anyway, there's no real reason to invoke Catalyst to send mails, and eventually I'm thinking you'll want to move from cron to something like POEx::WorkerPool to handle your batch email processing. Anyway, I digress :-) -- Devin Austin http://www.codedright.net 9702906669 - Cell
|