Mailing List Archive

C::V::Email::Template: how to use from cron
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@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
Re: C::V::Email::Template: how to use from cron [ In reply to ]
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@tty.nl> 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@lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>



--
Devin Austin
http://www.codedright.net
9702906669 - Cell
Re: C::V::Email::Template: how to use from cron [ In reply to ]
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@tty.nl
> <mailto:enno@tty.nl>> 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@lists.scsys.co.uk <mailto:Catalyst-dev@lists.scsys.co.uk>
> 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@lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>



_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
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@tty.nl> 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@tty.nl <mailto:
>> enno@tty.nl>> 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@lists.scsys.co.uk <mailto:Catalyst-dev@lists.scsys.co.uk>
>>
>> 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@lists.scsys.co.uk
>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>>
>>
>
>
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev@lists.scsys.co.uk
> 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