PHP 8.2.31
Preview: cdesc-SMTP.yaml Size: 9.57 KB
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Net/SMTP/cdesc-SMTP.yaml

--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: The address of the SMTP server to connect to.
  name: address
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Seconds to wait while attempting to open a connection. If the connection cannot be opened within this time, a TimeoutError is raised.
  name: open_timeout
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: The port number of the SMTP server to connect to.
  name: port
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Seconds to wait while reading one block (by one read(2) call). If the read(2) call does not complete within this time, a TimeoutError is raised.
  name: read_timeout
  rw: R
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: default_port
- !ruby/object:RI::MethodSummary 
  name: default_ssl_context
- !ruby/object:RI::MethodSummary 
  name: default_submission_port
- !ruby/object:RI::MethodSummary 
  name: default_tls_port
- !ruby/object:RI::MethodSummary 
  name: new
- !ruby/object:RI::MethodSummary 
  name: start
comment: 
- !ruby/struct:SM::Flow::H 
  level: 1
  text: Net::SMTP
- !ruby/struct:SM::Flow::H 
  level: 2
  text: What is This Library?
- !ruby/struct:SM::Flow::P 
  body: This library provides functionality to send internet mail via SMTP, the Simple Mail Transfer Protocol. For details of SMTP itself, see [RFC2821] (http://www.ietf.org/rfc/rfc2821.txt).
- !ruby/struct:SM::Flow::H 
  level: 2
  text: What is This Library NOT?
- !ruby/struct:SM::Flow::P 
  body: This library does NOT provide functions to compose internet mails. You must create them by yourself. If you want better mail support, try RubyMail or TMail. You can get both libraries from RAA. (http://www.ruby-lang.org/en/raa.html)
- !ruby/struct:SM::Flow::P 
  body: "FYI: the official documentation on internet mail is: [RFC2822] (http://www.ietf.org/rfc/rfc2822.txt)."
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Examples
- !ruby/struct:SM::Flow::H 
  level: 3
  text: Sending Messages
- !ruby/struct:SM::Flow::P 
  body: You must open a connection to an SMTP server before sending messages. The first argument is the address of your SMTP server, and the second argument is the port number. Using SMTP.start with a block is the simplest way to do this. This way, the SMTP connection is closed automatically after the block is executed.
- !ruby/struct:SM::Flow::VERB 
  body: "    require 'net/smtp'\n    Net::SMTP.start('your.smtp.server', 25) do |smtp|\n      # Use the SMTP object smtp only in this block.\n    end\n"
- !ruby/struct:SM::Flow::P 
  body: Replace 'your.smtp.server' with your SMTP server. Normally your system manager or internet provider supplies a server for you.
- !ruby/struct:SM::Flow::P 
  body: Then you can send messages.
- !ruby/struct:SM::Flow::VERB 
  body: "    msgstr = <<END_OF_MESSAGE\n    From: Your Name <your@mail.address>\n    To: Destination Address <someone@example.com>\n    Subject: test message\n    Date: Sat, 23 Jun 2001 16:26:43 +0900\n    Message-Id: <unique.message.id.string@example.com>\n\n    This is a test message.\n    END_OF_MESSAGE\n\n    require 'net/smtp'\n    Net::SMTP.start('your.smtp.server', 25) do |smtp|\n      smtp.send_message msgstr,\n                        'your@mail.address',\n                        'his_addess@example.com'\n    end\n"
- !ruby/struct:SM::Flow::H 
  level: 3
  text: Closing the Session
- !ruby/struct:SM::Flow::P 
  body: "You MUST close the SMTP session after sending messages, by calling the #finish method:"
- !ruby/struct:SM::Flow::VERB 
  body: "    # using SMTP#finish\n    smtp = Net::SMTP.start('your.smtp.server', 25)\n    smtp.send_message msgstr, 'from@address', 'to@address'\n    smtp.finish\n"
- !ruby/struct:SM::Flow::P 
  body: "You can also use the block form of SMTP.start/SMTP#start. This closes the SMTP session automatically:"
- !ruby/struct:SM::Flow::VERB 
  body: "    # using block form of SMTP.start\n    Net::SMTP.start('your.smtp.server', 25) do |smtp|\n      smtp.send_message msgstr, 'from@address', 'to@address'\n    end\n"
- !ruby/struct:SM::Flow::P 
  body: I strongly recommend this scheme. This form is simpler and more robust.
- !ruby/struct:SM::Flow::H 
  level: 3
  text: HELO domain
- !ruby/struct:SM::Flow::P 
  body: In almost all situations, you must provide a third argument to SMTP.start/SMTP#start. This is the domain name which you are on (the host to send mail from). It is called the "HELO domain". The SMTP server will judge whether it should send or reject the SMTP session by inspecting the HELO domain.
- !ruby/struct:SM::Flow::VERB 
  body: "    Net::SMTP.start('your.smtp.server', 25,\n                    'mail.from.domain') { |smtp| ... }\n"
- !ruby/struct:SM::Flow::H 
  level: 3
  text: SMTP Authentication
- !ruby/struct:SM::Flow::P 
  body: "The Net::SMTP class supports three authentication schemes; PLAIN, LOGIN and CRAM MD5. (SMTP Authentication: [RFC2554]) To use SMTP authentication, pass extra arguments to SMTP.start/SMTP#start."
- !ruby/struct:SM::Flow::VERB 
  body: "    # PLAIN\n    Net::SMTP.start('your.smtp.server', 25, 'mail.from.domain',\n                    'Your Account', 'Your Password', :plain)\n    # LOGIN\n    Net::SMTP.start('your.smtp.server', 25, 'mail.from.domain',\n                    'Your Account', 'Your Password', :login)\n\n    # CRAM MD5\n    Net::SMTP.start('your.smtp.server', 25, 'mail.from.domain',\n                    'Your Account', 'Your Password', :cram_md5)\n"
constants: 
- !ruby/object:RI::Constant 
  comment: 
  name: Revision
  value: "%q$Revision: 28208 $.split[1]"
- !ruby/object:RI::Constant 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Authentication
  name: DEFAULT_AUTH_TYPE
  value: ":plain"
- !ruby/object:RI::Constant 
  comment: 
  name: IMASK
  value: "0x36"
- !ruby/object:RI::Constant 
  comment: 
  name: OMASK
  value: "0x5c"
- !ruby/object:RI::Constant 
  comment: 
  name: CRAM_BUFSIZE
  value: "64"
full_name: Net::SMTP
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: auth_capable?
- !ruby/object:RI::MethodSummary 
  name: auth_cram_md5
- !ruby/object:RI::MethodSummary 
  name: auth_login
- !ruby/object:RI::MethodSummary 
  name: auth_method
- !ruby/object:RI::MethodSummary 
  name: auth_plain
- !ruby/object:RI::MethodSummary 
  name: authenticate
- !ruby/object:RI::MethodSummary 
  name: base64_encode
- !ruby/object:RI::MethodSummary 
  name: capable?
- !ruby/object:RI::MethodSummary 
  name: capable_auth_types
- !ruby/object:RI::MethodSummary 
  name: capable_cram_md5_auth?
- !ruby/object:RI::MethodSummary 
  name: capable_login_auth?
- !ruby/object:RI::MethodSummary 
  name: capable_plain_auth?
- !ruby/object:RI::MethodSummary 
  name: capable_starttls?
- !ruby/object:RI::MethodSummary 
  name: check_auth_args
- !ruby/object:RI::MethodSummary 
  name: check_auth_continue
- !ruby/object:RI::MethodSummary 
  name: check_auth_method
- !ruby/object:RI::MethodSummary 
  name: check_auth_response
- !ruby/object:RI::MethodSummary 
  name: check_continue
- !ruby/object:RI::MethodSummary 
  name: check_response
- !ruby/object:RI::MethodSummary 
  name: cram_md5_response
- !ruby/object:RI::MethodSummary 
  name: cram_secret
- !ruby/object:RI::MethodSummary 
  name: critical
- !ruby/object:RI::MethodSummary 
  name: data
- !ruby/object:RI::MethodSummary 
  name: debug_output=
- !ruby/object:RI::MethodSummary 
  name: disable_ssl
- !ruby/object:RI::MethodSummary 
  name: disable_starttls
- !ruby/object:RI::MethodSummary 
  name: disable_tls
- !ruby/object:RI::MethodSummary 
  name: do_finish
- !ruby/object:RI::MethodSummary 
  name: do_helo
- !ruby/object:RI::MethodSummary 
  name: do_start
- !ruby/object:RI::MethodSummary 
  name: ehlo
- !ruby/object:RI::MethodSummary 
  name: enable_ssl
- !ruby/object:RI::MethodSummary 
  name: enable_starttls
- !ruby/object:RI::MethodSummary 
  name: enable_starttls_auto
- !ruby/object:RI::MethodSummary 
  name: enable_tls
- !ruby/object:RI::MethodSummary 
  name: esmtp
- !ruby/object:RI::MethodSummary 
  name: esmtp=
- !ruby/object:RI::MethodSummary 
  name: esmtp?
- !ruby/object:RI::MethodSummary 
  name: finish
- !ruby/object:RI::MethodSummary 
  name: get_response
- !ruby/object:RI::MethodSummary 
  name: getok
- !ruby/object:RI::MethodSummary 
  name: helo
- !ruby/object:RI::MethodSummary 
  name: inspect
- !ruby/object:RI::MethodSummary 
  name: logging
- !ruby/object:RI::MethodSummary 
  name: mailfrom
- !ruby/object:RI::MethodSummary 
  name: new_internet_message_io
- !ruby/object:RI::MethodSummary 
  name: open_message_stream
- !ruby/object:RI::MethodSummary 
  name: quit
- !ruby/object:RI::MethodSummary 
  name: rcptto
- !ruby/object:RI::MethodSummary 
  name: rcptto_list
- !ruby/object:RI::MethodSummary 
  name: read_timeout=
- !ruby/object:RI::MethodSummary 
  name: ready
- !ruby/object:RI::MethodSummary 
  name: recv_response
- !ruby/object:RI::MethodSummary 
  name: send_mail
- !ruby/object:RI::MethodSummary 
  name: send_message
- !ruby/object:RI::MethodSummary 
  name: sendmail
- !ruby/object:RI::MethodSummary 
  name: set_debug_output
- !ruby/object:RI::MethodSummary 
  name: ssl?
- !ruby/object:RI::MethodSummary 
  name: start
- !ruby/object:RI::MethodSummary 
  name: started?
- !ruby/object:RI::MethodSummary 
  name: starttls
- !ruby/object:RI::MethodSummary 
  name: starttls?
- !ruby/object:RI::MethodSummary 
  name: starttls_always?
- !ruby/object:RI::MethodSummary 
  name: starttls_auto?
- !ruby/object:RI::MethodSummary 
  name: tls?
- !ruby/object:RI::MethodSummary 
  name: tlsconnect
name: SMTP
superclass: Object

Directory Contents

Dirs: 1 × Files: 73

Name Size Perms Modified Actions
Response DIR
- drwxr-xr-x 2024-03-03 22:50:12
Edit Download
223 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
188 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
195 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
189 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
184 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
189 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
187 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
177 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
342 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
334 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
325 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
325 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
319 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
9.57 KB lrw-r--r-- 2023-07-26 13:47:29
Edit Download
200 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
199 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
196 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
199 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
189 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
189 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
267 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
192 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
191 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
890 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
641 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
251 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
195 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
285 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
261 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
240 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
343 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
369 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
176 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
183 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
209 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
171 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
271 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
357 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
385 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
497 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
474 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
318 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
223 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
289 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
175 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
189 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
171 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
262 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
175 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
182 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
626 B lrw-r--r-- 2023-07-26 13:47:29
Edit Download
205 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
2.48 KB lrw-r--r-- 2023-07-26 13:47:30
Edit Download
165 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
176 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
198 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
256 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
289 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
184 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
263 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
265 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
1.74 KB lrw-r--r-- 2023-07-26 13:47:30
Edit Download
255 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
219 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
2.63 KB lrw-r--r-- 2023-07-26 13:47:29
Edit Download
2.58 KB lrw-r--r-- 2023-07-26 13:47:30
Edit Download
261 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
388 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
233 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
260 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
288 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
284 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download
179 B lrw-r--r-- 2023-07-26 13:47:30
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).