[Catalyst] problem with sending email

Andy Grundman andy at hybridized.org
Thu Jan 5 15:43:52 CET 2006


JOUANNE Mickael wrote:
> Hi.
> 
> I want to make a controller for sending mail.
> 
> But the problem is that $c->forward('render_email') return me the stash
> hash and not the processing of my template.
> 
> It it normal ?
> Do I forgot to do something in my code ?
> 
> My inspiration was the snippet in Catalyst::Plugin::Email

The C::P::Email docs have a working example of using Subrequest to render an 
email.  I think your problem is that you're trying to use the return value of a 
forward when you really need to be using the return value of $c->subreq(...).

-Andy



More information about the Catalyst mailing list