1MIME::Lite::TT::HTML(3)User Contributed Perl DocumentatioMnIME::Lite::TT::HTML(3)
2
3
4

NAME

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

SYNOPSIS

9           use MIME::Lite::TT::HTML;
10
11           my $msg = MIME::Lite::TT::HTML->new(
12               From        => 'from@example.com',
13               To          => 'to@example.com',
14               Subject     => 'Subject',
15               TimeZone    => 'Asia/Shanghai',
16               Encoding    => 'quoted-printable',
17               Template    => {
18                   html => 'mail.html',
19                   text => 'mail.txt',
20               },
21               Charset     => 'utf8',
22               TmplOptions => \%options,
23               TmplParams  => \%params,
24           );
25
26           $msg->send;
27

DESCRIPTION

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

METHODS

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

ADITIONAL OPTIONS

36   Template
37       The same value passed to the 1st argument of the process method of
38       Template::Toolkit is set to this option.
39
40   TmplParams
41       The parameter of a template is set to this option.  This parameter must
42       be the reference of hash.
43
44   TmplOptions
45       configuration of Template::Toolkit is set to this option.  ABSOLUTE and
46       RELATIVE are set to 1 by the default.
47
48   TimeZone
49       You can specified the time zone of the mail date:
50
51           TimeZone => 'Asia/Shanghai',
52
53       default using 'UTC' if not defined.
54
55   Encoding
56       Mail body will be encoded for tranfer.
57
58          Use encoding:     | If your message contains:
59          ------------------------------------------------------------
60          7bit              | Only 7-bit text, all lines <1000 characters
61          8bit              | 8-bit text, all lines <1000 characters
62          quoted-printable  | 8-bit text or long lines (more reliable than "8bit")
63          base64            | Largely non-textual data: a GIF, a tar file, etc.
64
65       default using '7bit' if not defined.
66
67   Charset
68       You can specified the charset of your mail, both subject and body will
69       using the charset to make mail reader's client satisfied.
70
71          Charset => 'big5',
72
73       And, if you giving the orignal words as UTF8 and attempt to mail them
74       as GB2312 charset, you can define the charset like:
75
76          Charset => [ 'utf8' => 'gb2312' ],
77
78       We will using Encode to make this happy.
79

AUTHOR

81       Sheng Chun <chunzi@cpan.org>
82

SEE ALSO

84       MIME::Lite::TT MIME::Lite::TT::Japanese MIME::Lite::TT::HTML::Japanese
85

LICENSE

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

POD ERRORS

91       Hey! The above document had some coding errors, which are explained
92       below:
93
94       Around line 50:
95           You forgot a '=back' before '=head1'
96
97       Around line 176:
98           =back without =over
99
100
101
102perl v5.32.0                      2020-07-28           MIME::Lite::TT::HTML(3)
Impressum