Hello list Ive tried to experiment with using perl for mail (calling form another program -Excel sheet macro) So I installed **MailTools-1.50**
and used an example form Mail::Mailer at CPAN. http://search.cpan.org/author/MARKOV/MailTools-1.50/Mail/Send.pm When the program runs I get the following error, which seems to be saying I need a system mail program... something like blat or sendmail, qmail if it were Linux. Im on NT 4 Server and currently using cdonts but I'd like to implement perl instead. what do I need to do? Id *really * rather not install blat as thats just another level of complexity... C:\1myperl>amail.pl Died at F:/Perl/site/lib/Mail/Mailer.pm line 290. line 290 # Fork and start a mailer (defined($exe) && open($self,"|-")) || $self->exec($exe, $args, \@to) || die $!; now on the other hand... if I C:\1myperl>perl -MMAIL -le "print(MAIL->VERSION)" Can't locate MAIL.pm in @INC (@INC contains: F:/Perl/lib F:/Perl/site/lib .). BEGIN failed--compilation aborted. I do have F:\Perl\site\lib\Mail\Mailer>dir /b > dir.txt which produces mail.pm qmail.pm rfc822.pm sendmail.pm smtp.pm test.pm Thanks rob #################### amail.pl #################################### require Mail::Send; $msg = new Mail::Send; $msg = new Mail::Send Subject=>'the subject', To=>'me'; $msg->to('[EMAIL PROTECTED]'); $msg->subject('example subject'); $msg->cc(''); $msg->bcc(''); $msg->set($header, @values); $msg->add($header, @values); $msg->delete($header); # Launch mailer and set headers. The filehandle returned # by open() is an instance of the Mail::Mailer class. # Arguments to the open() method are passed to the Mail::Mailer # constructor. $fh = $msg->open; # some default mailer # $fh = $msg->open('sendmail'); # explicit print $fh "Body of message"; $fh->close; # complete the message and send it $fh->cancel; # not yet implemented -- For perfect happiness, remember two things:(1) Be content with what you've got.(2) Be sure you've got plenty. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]