Catalyst::Plugin::Email::Japanese - Send Japanese emails with Catalyst


Catalyst-Plugin-Email-Japanese documentation  | view source Contained in the Catalyst-Plugin-Email-Japanese distribution.

Index


NAME

Top

Catalyst::Plugin::Email::Japanese - Send Japanese emails with Catalyst

SYNOPSIS

Top

    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!',
    );

DESCRIPTION

Top

Send emails with Catalyst and MIME::Lite::TT::Japanese.

ForceUTF8 MODE

Top

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.

HTML MAIL SUPPORT

Top

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.

METHODS

Top

email( %args )

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.

SEE ALSO

Top

Catalyst, Catalyst::Plugin::Email, MIME::Lite::TT::Japanese, MIME::Lite::TT::HTML::Japanese.

AUTHOR

Top

Daisuke Murase <typester@cpan.org>

COPYRIGHT

Top


Catalyst-Plugin-Email-Japanese documentation  | view source Contained in the Catalyst-Plugin-Email-Japanese distribution.