http://www.perlmonks.org?node_id=570121

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