NET::SMTP_auth error

P

perl_jam

I am trying to use NET::SMTP_auth but keep running into errors. It's
pointing to the line that uses auth:
$smtp->auth('username', 'password');

The error message says :
Can't call method auth on an undefined value at line...

I have tried several variations of arguments in auth, including full
email (with@) but the error persists.

Any idea on what might be wrong? What are the different possibilities
of the cause of error?
 
F

Fabian Pilkowski

* perl_jam said:
I am trying to use NET::SMTP_auth but keep running into errors. It's
pointing to the line that uses auth:
$smtp->auth('username', 'password');

The error message says :
Can't call method auth on an undefined value at line...

Such error messages could appear if $smtp is undefined. You're trying to
call $smtp's auth()-method but $smtp is no valid Net::SMTP-object. Have
you checked the contructor's return value.

regards,
fabian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top