[Catalyst] $c->email
Bill Moseley
moseley at hank.org
Sun Jan 7 15:59:10 GMT 2007
On Sun, Jan 07, 2007 at 12:41:45AM +0200, vb wrote:
> my $msg = new MIME::Lite(
> From => $from,
> To => $emal,
> Subject => $subj,
> Type => 'TEXT',
> Data => $out
> );
> $msg->attr("Content-type" => "text/html;charset=utf-8");
Does MIME::Lite parse the content type and encode the data? I would
think you would need to do:
Data => encode_utf8( $out ),
Octavian, for $c->email I use Email::MIME to create multi-part
messages. I set the charset attribute and use encode_utf8() for the
body. Then pass an array reference to the "parts" part when calling
$c->email.
--
Bill Moseley
moseley at hank.org
More information about the Catalyst
mailing list