vi_srikanth has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I am using the following code to send a test mail:
use Net::SMTP;
$smtp = Net::SMTP->new('pop.myserver.com);
$smtp->auth('myusername', 'mypassword');
$smtp->mail('from@emailaddress.com');
$smtp->to('to@emailaddress.com');
$smtp->data();
$smtp->datasend("Subject: test smtp\n");
$smtp->datasend("test\n");
$smtp->dataend();
$smtp->quit;
It works precisely in one system, whereas it is showing up the following error in another system:
Unknown callback: 'authname'. (user|auth|language|pass)
Any idea?
Thanks
Srikanth
Back to
Seekers of Perl Wisdom