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

Threaded View

I am attempting to get perl to send an Email message. Creating a new snmp
object works. After sending the command
$smtp->mail( $MailFrom) ;
I get a error message
530 authentication required.
I have tried the $smtp->auth($username, $password) but no effect.
How do I get around this problem? I am attempting to use my own ISP smtp
agent server address.

Re: authentication

whbjr24 wrote:
Quoted text here. Click to load it

How do you set up the SMTP-object?

Try 'print $smtp->domain,"\n";' after setting up
the SMTP-object to check that you are conneceted.

See also "perldoc Net::SMTP". The banner-method is
also useful.

Quoted text here. Click to load it

What is the return value from this call?

Quoted text here. Click to load it

Have you checked that the username and password work, e.g. from a mail

--Arne Sommer...

Site Timeline