my $to = $user->email; $c->stash->{email_out} = { to => $to, subject => "XXX.com Membership Activation ($enc_string)", template => 'activation.tt', }; $c->forward($c->view('Email::Template')); if (not scalar @{$c->error}) { $c->log->debug("*** Email sent! $to ($enc_string) ***"); }