GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MIME::LITE::TT::HTML (3)

.ds Aq ’

NAME

MIME::Lite::TT::HTML - Create html mail with MIME::Lite and TT

CONTENTS

SYNOPSIS



    use 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;



DESCRIPTION

This module provide easy interface to make MIME::Lite object with html formatted mail.

METHODS

new return MIME::Lite object with html mail format.

ADITIONAL OPTIONS

    Template

The same value passed to the 1st argument of the process method of Template::Toolkit is set to this option.

    TmplParams

The parameter of a template is set to this option. This parameter must be the reference of hash.

    TmplOptions

configuration of Template::Toolkit is set to this option. ABSOLUTE and RELATIVE are set to 1 by the default.

    TimeZone

You can specified the time zone of the mail date:



    TimeZone => Asia/Shanghai,



default using ’UTCif not defined.

    Encoding

Mail 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.

    Charset

You 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.

AUTHOR

Sheng Chun <chunzi@cpan.org>

SEE ALSO

MIME::Lite::TT MIME::Lite::TT::Japanese MIME::Lite::TT::HTML::Japanese

LICENSE

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

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 50: You forgot a ’=back’ before ’=head1’
Around line 176: =back without =over
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MIME::LITE::TT::HTML (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.