NET::SMTP_auth error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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?

Re: NET::SMTP_auth error

* perl_jam schrieb:

Quoted text here. Click to load it

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.


Site Timeline