in reply to Sending e-mail problem

As long as we're recommending mail modules, don't forget about MIME::Lite. Half the calories, twice the flavor.

MIME::Lite makes it very easy to adapt to systems with or without their own native mail transport.

I like using tried and proven modules rather than tackling "it's been done a million times" type problems from scratch. I've never been gung-ho enough to try to write my own mail transport as your script attempts to do, so I don't know the answer to the next question I'm going to ask... When you initiate your socket connection, is it a problem that you're starting with "HELO" instead of "HELLO"?


Dave

Replies are listed 'Best First'.
Re^2: Sending e-mail problem
by Crackers2 (Parson) on Jun 24, 2004 at 19:02 UTC

    HELO is the correct opening for a classic SMTP session (and if you're using extended SMTP it's EHLO)

    See RFC 821 for the details of the protocol. It's fairly simple and imo not a bad protocol to start with if you're trying to roll your own client for educational purposes.

      IIRC your supposed to do EHLO first, if the response is wrong try HELO. But i may not RC. :-)


      ---
      demerphq

        First they ignore you, then they laugh at you, then they fight you, then you win.
        -- Gandhi


        Only if the client supports ESMTP and makes use of the codes returned. If it doesn't use SMTP extensions, then starting with HELO is fine.