|
NAMEMIME::Lite::TT::HTML - Create html mail with MIME::Lite and TTSYNOPSISuse MIME::Lite::TT::HTML; my $msg = MIME::Lite::TT::HTML->new( From => 'from@example.com', To => 'to@example.com', Subject => 'Subject', TimeZone => 'Asia/Shanghai', Encoding => 'quoted-printable', Template => { html => 'mail.html', text => 'mail.txt', }, Charset => 'utf8', TmplOptions => \%options, TmplParams => \%params, ); $msg->send; DESCRIPTIONThis module provide easy interface to make MIME::Lite object with html formatted mail.METHODS
ADITIONAL OPTIONSTemplateThe same value passed to the 1st argument of the process method of Template::Toolkit is set to this option.TmplParamsThe parameter of a template is set to this option. This parameter must be the reference of hash.TmplOptionsconfiguration of Template::Toolkit is set to this option. ABSOLUTE and RELATIVE are set to 1 by the default.TimeZoneYou can specified the time zone of the mail date:TimeZone => 'Asia/Shanghai', default using 'UTC' if not defined. EncodingMail body will be encoded for tranfer.Use encoding: | If your message contains: ------------------------------------------------------------ 7bit | Only 7-bit text, all lines <1000 characters 8bit | 8-bit text, all lines <1000 characters quoted-printable | 8-bit text or long lines (more reliable than "8bit") base64 | Largely non-textual data: a GIF, a tar file, etc. default using '7bit' if not defined. CharsetYou can specified the charset of your mail, both subject and body will using the charset to make mail reader's client satisfied.Charset => 'big5', And, if you giving the orignal words as UTF8 and attempt to mail them as GB2312 charset, you can define the charset like: Charset => [ 'utf8' => 'gb2312' ], We will using Encode to make this happy. AUTHORSheng Chun <chunzi@cpan.org>SEE ALSOMIME::Lite::TT MIME::Lite::TT::Japanese MIME::Lite::TT::HTML::JapaneseLICENSEThis library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |