use MIME::Lite; use Mail::Sendmail; use strict; use warnings; my $msg = MIME::Lite->new( From => 'smith@here.com', To => 'jones@here.com', Subject => "tester", Data => "The file is attached.\n" ); $msg->attach( Path => '\perl\bin\myerrs.txt', Type =>'AUTO' ); $msg->send; #### C:\Perl\bin>mailAttach.pl The name specified is not recognized as an internal or external command, operable program or batch file.