juniorfoo has asked for the wisdom of the Perl Monks concerning the following question:

Any help is appreciated. I am running into an intermittent "Unexpected EOF on command channel at ..." when using Net::SMTP. Here is the debug log from SMTP:

Net::SMTP: Net::SMTP(2.24)
Net::SMTP: Net::Cmd(2.21)
Net::SMTP: Exporter(5.566)
Net::SMTP: IO::Socket::INET(1.26)
Net::SMTP: IO::Socket(1.27)
Net::SMTP: IO::Handle(1.21)

Net::SMTP: Unexpected EOF on command channel at /file/name.pm

This is how I am calling it:

$smtp = Net::SMTP->new($ServerName, Timeout => 30, Debug => 1);

Again, any help is appreciated.

Joe

Replies are listed 'Best First'.
Re: Net::SMTP EOF Errors
by pg (Canon) on Mar 31, 2003 at 20:04 UTC
    Your code should be fine. The chance is that the server side closed the connection prematurely. Focus on that.
      Thanks for the help. I will look into that now.

      Joe