new(address, port = nil)
public
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 SMTP.start instead of SMTP.new if you want to do everything at once. Otherwise, follow SMTP.new with SMTP#start.