perlquestion
Anonymous Monk
<p>Hi,</p>
<p>I am getting below error, while trying mime::lite in my local.</p>
<p>error:</p>
<c>'sendmail' is not recognized as an internal or external command, operable program or batch file.</c>
<p>The below is simple code :</p>
<c>
#!C:\perl\bin\perl.exe -w
use FindBin;
use lib "$FindBin::Bin/..";
use lib "c:\\perl\\site\\lib";
use strict;
use warnings;
use MIME::Lite;
my @body=('test');
my $to = 'sou@rediffmail.com';
my $from = 'sou@rediffmail.com';
my $subject = 'Test Email';
my $message = 'This is test email sent by Perl Script';
my $msg = MIME::Lite->new(
From => $from,
To => $to,
Subject => $subject,
Data => $message
);
$msg->send();
</c>
<p>any one help me in this?</p>
3