Name
new
Synopsis
$smtp= Net::SMTP->new(host[,options])
Constructor. Takes the hostname of the remote
mail server, host, and possibly
some options, and creates a new SMTP object. Any options are
passed to new as a hash, in
which the option is the key. The possible options are:
DebugEnables debug mode if set to
1. Provides information about your connection, requests, and responses.HelloSends a HELO command to the SMTP server. Takes a string that represents your domain; if not specified,
Helloguesses your domain.TimeoutTime (in seconds) after which the client stops trying to establish a connection with the SMTP server. Defaults to 120 seconds. If the connection cannot be established, the constructor returns
undef.