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
.
Creates a new URI::FTP
object from generic URL components with no syntax checking.
Unlike build(), this method does not escape the path component as required by RFC1738; instead it is treated as per RFC2396.
Arguments are scheme
, userinfo
, host
, port
, registry
, path
, opaque
, query
, and fragment
, in that order.
Just initializes all instance variables.
Create a PrettyPrint::SingleLine
object
Arguments:
output
- String
(or similar) to store rendered text. Needs to respond to ‘<<’
maxwidth
- Argument position expected to be here for compatibility.
This argument is a noop.
newline
- Argument position expected to be here for compatibility.
This argument is a noop.