Using perl send an html email

rajeshkumar created the topic: using perl send an html email

Using perl send an html email

#!/usr/bin/perl -w
use strict;
use MIME::Lite;
# SendTo email id
my $email = 'rajesh@scmgalaxy.com';
# create a new MIME Lite based email
my $msg = MIME::Lite->new
(
Subject => "HTML email test",
From => 'rajesh@scmgalaxy.com',
To => rajesh@scmgalaxy.com,
Type => 'text/html',
Data => '

Hello


This is a test email.
Please visit our site online


'
);
$msg->send();

use strict;
use Email::Sender::Simple qw(sendmail);
use Email::Simple;
use Email::Simple::Creator;

my $email = Email::Simple->create(
header => [
To => '"RAJESH KUMAR" ',
From => '"RAJESH KUMAR" ',
Subject => "don't forget to *enjoy the sauce*",
],
body => "This message is short, but at least it's cheap.\n",
);
sendmail($email);

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re: using perl send an html email

Some Good Reference

www.cyberciti.biz/faq/how-do-i-send-html-email-from-perl/
www.revsys.com/writings/perl/sending-email-with-perl.html

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x