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".

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;

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to