Catalyst::Plugin::Email::Japanese - Send Japanese emails with Catalyst
use Catalyst qw/Email::Japanese/; # config base parameters __PACKAGE__->config( email => { Template => 'email.tt', From => 'typester@cpan.org', } ); # and later in your controller $c->email( To => 'example@example.com', Subject => 'Hi!', );
Send emails with Catalyst and MIME::Lite::TT::Japanese.
If $c->config->{ForceUTF8} or $c->config->{email}->{ForceUTF8} is true value, this module use Template::Provider::Encoding and Template::Stash::ForceUTF8 for correct utf-8 handling.
Please see these module's docs for detail.
If Template parameter is hash ref like below:
$c->config->{email} = { Template => { html => 'html.tt', text => 'text.tt', }, };
then this module use MIME::Lite::TT::HTML::Japanese instead of MIME::Lite::TT::Japanese.
This is useful for sending html mails.
Send email with MIME::Lite::TT::(HTML::)Japanese.
%args and $c->config->{emal} is MIME::Lite::TT::(HTML::)Japanese's parameters, and %args override latter.
Catalyst, Catalyst::Plugin::Email, MIME::Lite::TT::Japanese, MIME::Lite::TT::HTML::Japanese.
Daisuke Murase <typester@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Catalyst::Plugin::Email::Japanese, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Email::Japanese
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Email::Japanese
For more information on module installation, please visit the detailed CPAN module installation guide.