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


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


'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 = ''; my $from = ''; 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?