summaryrefslogtreecommitdiff
path: root/lib/net/smtp.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-05 07:55:36 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-05 07:55:36 +0000
commitdeee7cb19f21323112075a85fab62fa87c4db117 (patch)
treed1d8b954fb35e109ba9d0a601a679e21450da6db /lib/net/smtp.rb
parentde7161526014b781468cea5d84411e23be945f79 (diff)
o remove RD white lines
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r--lib/net/smtp.rb15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 339ee41..3f999ef 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -27,21 +27,19 @@ Net::Protocol
=== Class Methods
: new( address = 'localhost', port = 25 )
-
This method create new SMTP object.
=== Methods
: start( helo_domain = ENV['HOSTNAME'] )
-
This method opens TCP connection and start SMTP.
If protocol had been started, do nothing and return false.
: sendmail( mailsrc, from_domain, 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.
+ 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.
Exceptions which SMTP raises are:
* Net::ProtoSyntaxError: syntax error (errno.500)
@@ -50,7 +48,6 @@ Net::Protocol
* Net::ProtoServerBusy: temporary error (errno.420/450)
: finish
-
This method ends SMTP.
If protocol had not started, do nothind and return false.
@@ -98,34 +95,28 @@ Net::Command
=== Class Methods
: new( socket )
-
This method creates new SMTPCommand object, and open SMTP.
=== Methods
: helo( helo_domain )
-
This method send "HELO" command and start SMTP.
helo_domain is localhost's FQDN.
: mailfrom( from_addr )
-
This method sends "MAIL FROM" command.
from_addr is your mail address(????@????).
: rcpt( to_addrs )
-
This method sends "RCPT TO" command.
to_addrs is array of mail address(???@???) of destination.
: data( mailsrc )
-
This method send 'mailsrc' as mail. SMTP reads strings from 'mailsrc'
by calling 'each' iterator.
: quit
-
This method sends "QUIT" command and ends SMTP session.
=end