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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::SMTP - Authentication Problem
by zentara (Archbishop) on Aug 29, 2006 at 12:06 UTC | |
by Anonymous Monk on Feb 12, 2008 at 01:08 UTC | |
by vi_srikanth (Acolyte) on Aug 29, 2006 at 13:38 UTC | |
by zentara (Archbishop) on Aug 29, 2006 at 16:45 UTC | |
by vi_srikanth (Acolyte) on Aug 30, 2006 at 09:40 UTC | |
by zentara (Archbishop) on Aug 30, 2006 at 12:46 UTC | |
Re: Net::SMTP - Authentication Problem
by dtr (Scribe) on Aug 29, 2006 at 11:38 UTC | |
by vi_srikanth (Acolyte) on Aug 29, 2006 at 13:37 UTC | |
Re: Net::SMTP - Authentication Problem
by Khen1950fx (Canon) on Aug 29, 2006 at 11:30 UTC | |
Re: Net::SMTP - Authentication Problem
by Anonymous Monk on Aug 29, 2006 at 14:56 UTC |
Back to
Seekers of Perl Wisdom