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


NAME

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


SYNOPSIS

    use Catalyst 'EmailMulti';
    __PACKAGE__->config->{email} = [qw/SMTP mail.shanon.co.jp/];
    $c->email(
        header => [
            From    => 'sri@oook.de',#日本語番もOK
            To      => 'sri@cpan.org',#日本語番もOK
            Subject => 'Hello!'#日本語番もOK
        ],
        body => 'Hello sri',# 本文
        multi => [{body=>$data->body(),# 添付ファイルの中身
                   filename=>$data->name(). '.' .$data->extention(),#ファイル名
                  },
                  {body=>$data->body(),
                   filename=>$data->name(). '.' .$data->extention(),
                  },
                  ]
             );


DESCRIPTION

Send emails with Catalyst and the Email::Send manpage and the Email::MIME::Creator manpage.


USING WITH A VIEW


METHODS

email


SEE ALSO

Catalyst, the Catalyst::Plugin::SubRequest manpage, the Email::Send manpage, the Email::MIME::Creator manpage


AUTHOR

nakamura kenichiro <nakamura@shanon.co.jp>


COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.