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.

doc_ruby_on_rails
2015-04-22 12:47:40
Comments
Leave a Comment

Please login to continue.