in reply to Net::SMTP generates unexpected errors in Debug Mode

I got your script to work by putting the mail($from) before the recipient($to) and removing the auth line. I trust your auth parameters are not real !
poj
  • Comment on Re: Net::SMTP generates unexpected errors in Debug Mode

Replies are listed 'Best First'.
Re: Re: Net::SMTP generates unexpected errors in Debug Mode
by gary kuipers (Beadle) on Dec 22, 2002 at 23:26 UTC
    That was it! It is the order in which the methods are invoked. Thanks!
      When in doubt, I often just telnet into the SMTP server (port 25) and try the commands manually:

      HELO domain.com
      MAIL FROM: user@domain.com
      RCPT TO: user@destination.com
      DATA
      ..<blah blah>

      Some SMTP servers are very lenient and some are very strict. Try your best to stick to the RFC and I think you'll be safe in any case:

      http://www.ietf.org/rfc/rfc0821.txt