diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-03 03:54:25 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-03 03:54:25 +0000 |
commit | 559ad1c315796c446abe3ee78500f3b5e6a98ae7 (patch) | |
tree | 5bdd904fb2fd175abafefb19fb785109246cf916 /lib | |
parent | 973621e37b4f1d39b03126878bdc7b6bbe62410e (diff) | |
download | ruby-559ad1c315796c446abe3ee78500f3b5e6a98ae7.tar.gz ruby-559ad1c315796c446abe3ee78500f3b5e6a98ae7.tar.xz ruby-559ad1c315796c446abe3ee78500f3b5e6a98ae7.zip |
* lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
'localhost.localdomain'. [ruby-dev:35333]
* lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/smtp.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 57dee9a49..5cce6cc50 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -437,7 +437,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.localdomain'. + # server (see overview comments); it defaults to 'localhost'. # # The remaining arguments are used for SMTP authentication, if required # or desired. +user+ is the account name; +secret+ is your password @@ -457,7 +457,7 @@ module Net # * IOError # * TimeoutError # - def SMTP.start(address, port = nil, helo = 'localhost.localdomain', + def SMTP.start(address, port = nil, helo = 'localhost', user = nil, secret = nil, authtype = nil, &block) # :yield: smtp new(address, port).start(helo, user, secret, authtype, &block) @@ -518,7 +518,7 @@ module Net # * IOError # * TimeoutError # - def start(helo = 'localhost.localdomain', + def start(helo = 'localhost', user = nil, secret = nil, authtype = nil) # :yield: smtp if block_given? begin |