message

message() Instance Public methods The first line of the human readable reply text

status_type_char

status_type_char() Instance Public methods Takes the first digit of the reply code to determine the status type

success?

success?() Instance Public methods Determines whether the response received was a Positive Completion reply (2xx reply code)

default_port

default_port() Class Public methods The default SMTP port number, 25.

default_ssl_context

default_ssl_context() Class Public methods

default_ssl_port

default_ssl_port() Class Public methods Alias for: default_tls_port

default_submission_port

default_submission_port() Class Public methods The default mail submission port number, 587.

default_tls_port

default_tls_port() Class Public methods The default SMTPS port number, 465. default_ssl_port

new

new(address, port = nil) Class Public methods Creates a new Net::SMTP object. address is the hostname or ip address of your SMTP server. port is the port to connect to; it defaults to port 25. This method does not open the TCP connection. You can use ::start instead of ::new if you want to do everything at once. Otherwise, follow ::new with #start.

start

start(address, port = nil, helo = 'localhost', user = nil, secret = nil, authtype = nil) Class Public methods Creates a new Net::SMTP object and connects to the server. This method is equivalent to: Net::SMTP.new(address, port).start(helo_domain, account, password, authtype) Example Net::SMTP.start('your.smtp.server') do |smtp| smtp.send_message msgstr, 'from@example.com', ['dest@example.com'] end Block Usage If called with a block, the newly-opened Net::SMTP object is yielded