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
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024
- Top Global Medical Tourism Companies in the World - December 20, 2024
- Medical Laboratory equipment manufacturing company - December 20, 2024