Im guessing that you need to authenticate yourself with the SMTP server. Without seeing the full output of the conversation with the server (what you posted is not it) its hard to tell whats going wrong.
I suspect that your problem with debugging this may be that you are running this as a CGI and that Net::SMTP (because of its Net::CMD heritage) writes the conversation with the SMTP server to STDERR. I think you need to use CGI::Carp to get this to be redirected to your webserver error logs.
As a last point you may want to just go and install an email handling module like MIME::Lite and save yourself the hassle of talking to the SMTP server directly. However if authentication is the problem then MIME::Lite will unfortunately not be directly suitable until 3.02 comes out. However I am working on it.
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to Re: Net::SMTP and debugging ?
by demerphq
in thread Net::SMTP and debugging ?
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |