From b014cc337ef28498311f58a7b28bdfffebc53f00 Mon Sep 17 00:00:00 2001 From: aamine Date: Sun, 5 Mar 2000 10:25:53 +0000 Subject: Version 1.1.6 o all: use 'attr_reader/writer' instead of 'attr' o http.rb: get/head allow implicit 'start' o http.rb: change connection state algorithm o http.rb: process user header before write o protocol.rb: refine start/finish o protocol.rb: Command#last_reply o protocol.rb: ReplyCode.error! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/smtp.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/net/smtp.rb') diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 4b2986dea2..2c387db43c 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -36,7 +36,7 @@ Net::Protocol This method opens TCP connection and start SMTP. If protocol had been started, do nothing and return false. -: sendmail( mailsrc, from_domain, to_addrs ) +: sendmail( mailsrc, from_addr, to_addrs ) This method sends 'mailsrc' as mail. SMTPSession read strings from 'mailsrc' by calling 'each' iterator, and convert them into "\r\n" terminated string when write. @@ -47,7 +47,7 @@ Net::Protocol * Net::ProtoUnknownError: unknown error * Net::ProtoServerBusy: temporary error (errno.420/450) -: ready( from_domain, to_addrs ) {|adapter| .... } +: ready( from_addr, to_addrs ) {|adapter| .... } This method stands by the SMTP object for sending mail. In the block of this iterator, you can call ONLY 'write' method for 'adapter'. @@ -133,11 +133,11 @@ Net::Command : mailfrom( from_addr ) This method sends "MAIL FROM" command. - from_addr is your mail address(????@????). + from_addr is your mail address (xxxx@xxxx) : rcpt( to_addrs ) This method sends "RCPT TO" command. - to_addrs is array of mail address(???@???) of destination. + to_addrs is array of mail address (xxxx@xxxx) of destination. : data This method sends "DATA" command. -- cgit v1.2.3