[Catalyst] problem with sending email
Matt S Trout
dbix-class at trout.me.uk
Thu Jan 5 16:03:15 CET 2006
On Thu, Jan 05, 2006 at 02:55:18PM +0100, 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 ?
If you want to return a view-rendered template contents, you probably want
$c->subreq (from Catalyst::Plugin::SubRequest).
forward returns whatever the action it calls returns, not $c->res->output.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list