summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-17 12:42:52 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-17 12:42:52 +0000
commit296150a27ff784cc0fd3d52dabc6e67a3d96d662 (patch)
treeab5756cbd9c0930b160134c91f5683d50b83cf51 /lib/net
parentb3f0632590aa73ed84cec022b43718e2b94dfbfb (diff)
* lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821
violation. [ruby-dev:35487] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@18118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/smtp.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 5cce6cc50c..57dee9a496 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'.
+ # 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
@@ -457,7 +457,7 @@ module Net
# * IOError
# * TimeoutError
#
- def SMTP.start(address, port = nil, helo = 'localhost',
+ 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)
@@ -518,7 +518,7 @@ module Net
# * IOError
# * TimeoutError
#
- def start(helo = 'localhost',
+ def start(helo = 'localhost.localdomain',
user = nil, secret = nil, authtype = nil) # :yield: smtp
if block_given?
begin