Dear Monks,
I'm trying to set up Net::SMTP to send emails through my SMTP server using the follow code:
use Net::Cmd;
use Net::SMTP;
my $smtp = Net::SMTP->new($mailserver) ||
die $!; #print p("Couldn't create the smtp object");
$smtp->auth($username, $password)
or die "Can't authenticate: $!\n";
and i get the following error:
Can't locate Authen/SASL.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.7/mach /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.7/BSDPAN /usr/local/lib/perl5/5.8.7/mach /usr/local/lib/perl5/5.8.7 .) at /usr/local/lib/perl5/site_perl/5.005/Net/SMTP.pm line 102.
any idea what i'm doing wrong?
TIA,
janaki