|
Catalyst::Plugin::Email - Send emails with Catalyst |
Catalyst::Plugin::Email - Send emails with Catalyst
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(),
},
]
);
Send emails with Catalyst and the Email::Send manpage and the Email::MIME::Creator manpage.
the Catalyst manpage, the Catalyst::Plugin::SubRequest manpage, the Email::Send manpage, the Email::MIME::Creator manpage
nakamura kenichiro <nakamura@shanon.co.jp>
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
|
Catalyst::Plugin::Email - Send emails with Catalyst |