debug_output=

debug_output=(arg) Instance Public methods WARNING: This method causes serious security holes. Use this method for only debugging. Set an output stream for debug logging. You must call this before start. # example smtp = Net::SMTP.new(addr, port) smtp.set_debug_output $stderr smtp.start do |smtp| .... end set_debug_output

disable_ssl

disable_ssl() Instance Public methods Alias for: disable_tls

disable_starttls

disable_starttls() Instance Public methods Disables SMTP/TLS (STARTTLS) for this object. Must be called before the connection is established to have any effect.

disable_tls

disable_tls() Instance Public methods Disables SMTP/TLS for this object. Must be called before the connection is established to have any effect. disable_ssl

ehlo

ehlo(domain) Instance Public methods

enable_ssl

enable_ssl(context = SMTP.default_ssl_context) Instance Public methods Alias for: enable_tls

enable_starttls

enable_starttls(context = SMTP.default_ssl_context) Instance Public methods Enables SMTP/TLS (STARTTLS) for this object. context is a OpenSSL::SSL::SSLContext object.

enable_starttls_auto

enable_starttls_auto(context = SMTP.default_ssl_context) Instance Public methods Enables SMTP/TLS (STARTTLS) for this object if server accepts. context is a OpenSSL::SSL::SSLContext object.

enable_tls

enable_tls(context = SMTP.default_ssl_context) Instance Public methods Enables SMTP/TLS (SMTPS: SMTP over direct TLS connection) for this object. Must be called before the connection is established to have any effect. context is a OpenSSL::SSL::SSLContext object. enable_ssl

finish

finish() Instance Public methods Finishes the SMTP session and closes TCP connection. Raises IOError if not started.