Jaiane has asked for the wisdom of the Perl Monks concerning the following question:
# **** My controller ****#name: TaxiMud default_view: TT View::Email::Template: stash_key: enviar_email default: content_type: text/plain charset: utf-8 to: kermeson@gmail.com view: TT sender: mailer: SMTP
Could you help me give some idea... thankssub 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); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Configuring Email with View::Email::Template
by almut (Canon) on Oct 08, 2008 at 20:35 UTC |