sub enviar_orcamento: Local { my ( $self, $c ) = @_; my $subject = encode('UTF-8','Pedido de Orçamento'); $c->stash->{enviar_email} = { to => 'kermeson@gmail.com', from => $c->req->param('email_origem'), template => 'orcamento/enviado.tt', subject => $subject, content_type => 'text/html', }; $c->forward( $c->view('Email::Template') ); if ($c->error) { $c->stash->{erro} = join ' ', @{$c->error}; $c->error(0); } }