On Oct 10, 2006, at 5:56 PM, Russell Fulton wrote:

> I wish to 'reset' the smtp session so that I can continue sending  
> email
> without doing a finish and another start (i.e. before I retry).  Is  
> this
> possible?  I've looked through the docs for net::smtp and not found
> anything obvious.  I have not looked at the source yet.

I haven't submitted a patch for it yet, but this will do it:

##
# Hack in RSET

class Net::SMTP # :nodoc:

   unless instance_methods.include? 'reset' then
     ##
     # Resets the SMTP connection.

     def reset
       getok 'RSET'
     end
   end

end

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com