Email::MIME::MobileJP::Template - 日本語でメールを送信するときに楽するライブラリ
use Email::MIME::MobileJP::Template; use Email::Sender::Simple; my $estj = Email::MIME::MobileJP::Template->new( 'Text::Xslate' => { syntax => 'TTerse', path => ['./email_tmpl/'], }, ); my $email = $estj->render('foo.eml', {token => $token}); Email::Sender::Simple->send($email);
日本語でメールを送信するときにつかうライブラリです。テンプレートファイルを元に、任意のテンプレートエンジンを使用し、メールを作成します。
テンプレートファイルには
Subject: [% name %]様へお特な情報のご案内 おとくですよ! http://example.com[% path_info %]
のようにかくことができます。
最初のヘッダ行はなくてもかまいません。
Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Email::MIME::MobileJP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::MIME::MobileJP
CPAN shell
perl -MCPAN -e shell install Email::MIME::MobileJP
For more information on module installation, please visit the detailed CPAN module installation guide.