View Single Post

  #3 (permalink)  
Old 08-16-2007, 05:37 PM
A.L.E.X A.L.E.X is offline
Junior Member
User
 
Join Date: Jul 2007
Location: Cedar Falls, IA
My distro: Fedora
Posts: 3
Rep Power: 0
A.L.E.X is on a distinguished road
Default

what if I want to send a full html page ?

PHP Code:
#!/usr/bin/perl -w
use strict;
use 
MIME::Lite;

# SendTo email id
my $email ‘user@somewhere.com’;

# create a new MIME Lite based email
my $msg MIME::Lite->new
(
Subject => “HTML email test”,
From    => ‘YOU@somewhere.com’,
To      => $email,
Type    => ‘text/html’,
Data    => <H1>Hello</H1><br>This is a test email.
Please visit our site <a href=”http://cyberciti.biz/”>online</a><hr>’
);
$msg->send(); 
in the above example, Data value is short .. what I'm trying to do is sending a full html page using the above example.

Thanks,
Reply With Quote