in reply to SMTP Connection Problem

The mail() call is irrelevant since it never gets there. The constructor is failing. It is getting through sending the EHLO command and receiving the response.

When you did the telnet, did you do exactly what is being sent? I could see the server rejecting the name in the EHLO and dropping the connection. Try setting the Hello parameter in the constructor to the local IP address or hostname.

Replies are listed 'Best First'.
Re: Re: SMTP Connection Problem
by tiredcoder (Initiate) on Apr 05, 2004 at 12:18 UTC
    I sent the same thing in telnet that I'm trying to send with the Perl. I thought it would be a good way to check that my parameters are ok. Which is why I'm confused on why it works through telnet, but not through the Perl script. I tried setting the Hello parameter to my local IP address and my hostname as you suggested, but I still get the same results. Thanks for the help.