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