[Catalyst] $c->email

apv apv at sedition.com
Sun Jan 7 08:04:57 GMT 2007


You might also look at the guts of Catalyst::Plugin::Email::Japanese  
to see if it's of any interest.

-Ashley


On Jan 6, 2007, at 8:52 PM, Octavian Rasnita wrote:

> Ok, thank you. I had previously used MIME::Lite (not using UTF-8  
> though) and I think I will follow this way.
> I asked about $c->email because I thought it might be easier.
>
> Octavian
> ----- Original Message -----
> From: vb
> To: The elegant MVC web framework
> Sent: Sunday, January 07, 2007 12:41 AM
> Subject: Re: [Catalyst] $c->email
>
> I use MIME::Lite, don't know "$c->email"...
> A concrete example, from a real salary application  
> (salar.sitsco.com - in short time
> I provide a new, many featured, version):
>
> sub send_fisa : Local {
>   my ( $self, $c, $ia ) = @_;
>   my $st = salar::Model::State->retrieve($ia);
>   my $emal = $st->id_angajat->email;
>   my $from = $st->id_scoala->email;
>   my $subj = 'fişă salariu';
>   $st->subrute;
>   $c->stash->{angaj} = $st;
>   $c->stash->{sendto} = 1;
>   my $out = $c->view('TT')->render($c, 'fisa_stang.html');
>   my $msg = new MIME::Lite(
>        From => $from,
>        To => $emal,
>        Subject => $subj,
>        Type => 'TEXT',
>        Data => $out
>     );
>  $msg->attr("Content-type" => "text/html;charset=utf-8");
>  $msg->send;
> #   $c->res->redirect('/');
> return $c->res->body("<script>hideLev('hsind');</script>");
> }
>
> --vb
>
> On 1/6/07, Octavian Rasnita <orasnita at gmail.com> wrote: Hi,
>
> Does anyone have an example of sending a UTF-8 encoded email  
> message using
> $c->email?
>
> Thank you.
>
> Octavian
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/ 
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/ 
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/ 
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list