http://qs321.pair.com?node_id=1166518

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am getting below error, while trying mime::lite in my local.

error:

'sendmail' is not recognized as an internal or external command, operable program or batch file.

The below is simple code :

#!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();

any one help me in this?