* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@17840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0816c0dff
commit
3819f8d156
@ -1,3 +1,10 @@
|
|||||||
|
Thu Jul 3 12:49:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Thu Jul 3 07:06:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Jul 3 07:06:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* Makefile.in (SET_LC_MESSAGES): LC_MESSAGES must be C.
|
* Makefile.in (SET_LC_MESSAGES): LC_MESSAGES must be C.
|
||||||
|
@ -437,7 +437,7 @@ module Net
|
|||||||
# +port+ is the port to connect to; it defaults to port 25.
|
# +port+ is the port to connect to; it defaults to port 25.
|
||||||
#
|
#
|
||||||
# +helo+ is the _HELO_ _domain_ provided by the client to the
|
# +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
|
# The remaining arguments are used for SMTP authentication, if required
|
||||||
# or desired. +user+ is the account name; +secret+ is your password
|
# or desired. +user+ is the account name; +secret+ is your password
|
||||||
@ -457,7 +457,7 @@ module Net
|
|||||||
# * IOError
|
# * IOError
|
||||||
# * TimeoutError
|
# * TimeoutError
|
||||||
#
|
#
|
||||||
def SMTP.start(address, port = nil, helo = 'localhost.localdomain',
|
def SMTP.start(address, port = nil, helo = 'localhost',
|
||||||
user = nil, secret = nil, authtype = nil,
|
user = nil, secret = nil, authtype = nil,
|
||||||
&block) # :yield: smtp
|
&block) # :yield: smtp
|
||||||
new(address, port).start(helo, user, secret, authtype, &block)
|
new(address, port).start(helo, user, secret, authtype, &block)
|
||||||
@ -518,7 +518,7 @@ module Net
|
|||||||
# * IOError
|
# * IOError
|
||||||
# * TimeoutError
|
# * TimeoutError
|
||||||
#
|
#
|
||||||
def start(helo = 'localhost.localdomain',
|
def start(helo = 'localhost',
|
||||||
user = nil, secret = nil, authtype = nil) # :yield: smtp
|
user = nil, secret = nil, authtype = nil) # :yield: smtp
|
||||||
if block_given?
|
if block_given?
|
||||||
begin
|
begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user