13 Mar 2006 08:48:38 UTC
- Distribution: MIME-Lite-TT-Japanese
- Module version: 0.08
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (853 / 2 / 0)
- KwaliteeBus factor: 0
- 66.18% Coverage
- License: unknown
- Activity24 month
- Download (2.82KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionHORIUCHI Yasuhiro Horiuchi
MIME::Lite::TT::Japanese - MIME::Lite::TT with Japanese character code
use MIME::Lite::TT::Japanese; my $msg = MIME::Lite::TT::Japanese->new( From => 'email@example.com', To => 'firstname.lastname@example.org', Subject => 'Hi', Template => \$template, TmplParams => \%params, TmplOptions => \%options, Icode => 'sjis', LineWidth => 72, ); $msg->send();
MIME::Lite::TT::Japanese is subclass of MIME::Lite::TT. This module helps creation of Japanese mail.
'text/plain; charset=iso-2022-jp' is set to 'Type' of MIME::Lite option by default.
'7bit' is set to 'Encoding' of MIME::Lite option by default.
convert the subject and the from to MIME-Header documented in RFC1522.
convert the mail text to JIS.
set Japanese local-time at Date field by default.
auto linefeed (by default changes line per 72 bytes)
Set the character code of the subject, the from and the template. 'euc', 'sjis' or 'utf8' can be set. If no value is set, this module try to guess encoding. If it is failed to guess encoding, 'euc' is assumed.
number of characters in which it changes line automatically.(the unit is byte. default is 72) Set 0 (zero) if you do not want to change line automatically.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install MIME::Lite::TT::Japanese, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install MIME::Lite::TT::Japanese
For more information on module installation, please visit the detailed CPAN module installation guide.