summaryrefslogtreecommitdiff
path: root/cpan/dist/MIME-Lite-HTML/README
blob: 41ee7b388cfa675c135b8fb70ca632b1eafb1e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
WHAT IS THIS ?

This is MIME::Lite::HTML, a module which provide routine 
to transform a HTML page in a MIME::Lite mail

The job done is:

 + Get the file (LWP)
 + Parse page to find include images
 + Attach them to mail with adequat cid
 + Include external CSS,Javascript file
 + Replace relative url with absolute one

It can be used by example in a HTML newsletter. You make a classic HTML page, 
and give just url to MIME::Lite::HTML.

HOW DO I INSTALL IT ?

To install this module, cd to the directory that contains
this README file and type the following:

   perl Makefile.PL
   make
   make test
   make install

If you can't do that, you can put HTML.pm file in
directory $root/MIME/Lite/HTML.pm and then put use lib
$root in your program (make same thing if you haven't MIME-Lite
module).
So it give:
$root/MIME/Lite/HTML.pm
$root/MIME/Lite.pm

and in your script:

#!/usr/bin/perl
$root='/home/alian/mylibperl'
use lib $root;
use MIME::Lite;
use MIME::Lite::HTML;

REQUIREMENT ?

libnet, MIME::Lite

DOCUMENTATION ?

You'll find very verbose documentation in the file
HTML.pm in POD format

When you install MIME::Lite::HTML, the MakeMaker program
will automatically install the manual pages for you
(on Unix systems, type "man MIME::Lite::HTML").

Have fun, and let me know how it turns out!

Alain BARBET
alian@alianwebserver.com