diff options
Diffstat (limited to 'lib/net/smtp.rb')
-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 53bed4910b..f7af92d635 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -33,7 +33,7 @@ Net::Protocol opens TCP connection and starts SMTP session. If protocol had been started, do nothing and return false. - When this methods is called as iterator, give a SMTP object to block and + When this methods is called with a block, give a SMTP object to block and close session after block call finished. If account and password are given, is trying to get authentication @@ -42,7 +42,7 @@ Net::Protocol : send_mail( mailsrc, from_addr, *to_addrs ) : sendmail( mailsrc, from_addr, *to_addrs ) This method sends 'mailsrc' as mail. SMTP read strings - from 'mailsrc' by calling 'each' iterator, and convert them + from 'mailsrc' by calling 'each' method, and convert them into "\r\n" terminated string when write. from_addr must be String. @@ -62,7 +62,7 @@ Net::Protocol : 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 + In the block of this method, you can call ONLY 'write' method for 'adapter'. # usage example |