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.
Please login to continue.