> > Steve Few wrote: > > Hi guys, > > > > I tried to send this little test script, but my error at my > NT command > > line was, > > > > "cant' locate Mail::Sendmail.pm in @inc (@inc contains d:/perl/lib > > D:/perl/site/lib at sendmail.pl at line 3". Maybe I'm missing a previous thread but this usually means that 1) the module is not installed 2) You've misspelled the installe dmodule by accident.
DMuey > > > > The *.pl below is sendmail.pl. > > > > Any suggestions? I use Netscape, ActivePerl 5.8, NT. > > > > Thanks, > > Steve Few > > NC DENR > > [EMAIL PROTECTED] > > > > > > ------------------ sendmail.pl ------------------------- > > #!/usr/bin/perl -w #Or Mail::Sendmail, which can be used > like this: ; > > use Mail::Sendmail; > > %mail = ( To => '[EMAIL PROTECTED]', > > From => '[EMAIL PROTECTED]', > > Message => "This is a minimalistic message -- from > > [EMAIL PROTECTED]" > > ); > > if (sendmail %mail) { print "Mail sent OK.\n" } > > else { print "Error sending mail: $Mail::Sendmail::error \n" > > } > > > > exit; > > Steve, > Took exactly what you have and changed to me and it > went like you would have expected. I am running on w2k, AS > 5.6.0. A liitle older, but should work. You have checked > that it is loaded? > > Wags ;) > > > ********************************************************** > This message contains information that is confidential > and proprietary to FedEx Freight or its affiliates. > It is intended only for the recipient named and for > the express purpose(s) described therein. > Any other use is prohibited. > **************************************************************** > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]