diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/smtp.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 35108966c5..a4a2c52d58 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -289,7 +289,7 @@ module Net # +port+ is the port to connect to; it defaults to port 25. # # +helo+ is the _HELO_ _domain_ provided by the client to the - # server (see overview comments); it defaults to 'localhost'. + # server (see overview comments); it defaults to 'localhost.localdomain'. # # The remaining arguments are used for SMTP authentication, if required # or desired. +user+ is the account name; +secret+ is your password @@ -309,10 +309,9 @@ module Net # * IOError # * TimeoutError # - def SMTP.start( address, port = nil, - helo = 'localhost', - user = nil, secret = nil, authtype = nil, - &block) # :yield: smtp + def SMTP.start(address, port = nil, helo = 'localhost.localdomain', + user = nil, secret = nil, authtype = nil, + &block) # :yield: smtp new(address, port).start(helo, user, secret, authtype, &block) end @@ -371,8 +370,8 @@ module Net # * IOError # * TimeoutError # - def start( helo = 'localhost', - user = nil, secret = nil, authtype = nil ) # :yield: smtp + def start(helo = 'localhost.localdomain', + user = nil, secret = nil, authtype = nil) # :yield: smtp if block_given? begin do_start(helo, user, secret, authtype) |