summaryrefslogtreecommitdiff
path: root/lib/net/smtp.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-03 19:03:16 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-03 19:03:16 +0000
commit9e79454b3d6476ff0da11ae7917b25edd8057f1d (patch)
tree12597b510228a84f98541f787c96a8c2a3807bdc /lib/net/smtp.rb
parentfa20d931bcd07a5f7d8ab80edc79419cae1d25fd (diff)
aamine
* lib/net/http.rb (HTTP#request_by_name): bug fix. * lib/net/http.rb: does not write Connection: by default. * lib/net/protocol.rb: "start" for started protocol is an error. * lib/net/protocol.rb: "finish" for finished protocol is an error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r--lib/net/smtp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index c56d2c9e32..186ffa291a 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -108,8 +108,8 @@ send or reject SMTP session by this data.
: start( helo_domain = <local host name>, account = nil, password = nil, authtype = nil )
: start( helo_domain = <local host name>, account = nil, password = nil, authtype = nil ) {|smtp| .... }
opens TCP connection and starts SMTP session.
- If protocol had been started, do nothing and return false.
HELO_DOMAIN is a domain that you'll dispatch mails from.
+ If protocol had been started, raises IOError.
When this methods is called with block, give a SMTP object to block and
close session after block call finished.
@@ -141,7 +141,7 @@ send or reject SMTP session by this data.
: finish
finishes SMTP session.
- If SMTP session had not started, do nothing and return false.
+ If SMTP session had not started, raises an IOError.
: send_mail( mailsrc, from_addr, *to_addrs )
This method sends MAILSRC as mail. A SMTP object read strings