| Catalyst-Plugin-Email-Japanese documentation | view source | Contained in the Catalyst-Plugin-Email-Japanese distribution. |
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.
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.
| Catalyst-Plugin-Email-Japanese documentation | view source | Contained in the Catalyst-Plugin-Email-Japanese distribution. |