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
MIME::Lite::TT::HTML(3) User Contributed Perl Documentation MIME::Lite::TT::HTML(3)

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

    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;

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

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

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

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

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

You can specified the time zone of the mail date:

    TimeZone => 'Asia/Shanghai',

default using 'UTC' if not defined.

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.

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.

Sheng Chun <chunzi@cpan.org>

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

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

Hey! The above document had some coding errors, which are explained below:
Around line 50:
You forgot a '=back' before '=head1'
Around line 176:
=back without =over
2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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