method

enable_tls

v2_4_6 - Show latest stable - Class: Net::SMTP
enable_tls(context = SMTP.default_ssl_context)
public

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.