HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //opt/alt/ruby18/share/ri/1.8/system/Net/SMTP/data-i.yaml
--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: stream
comment: 
- !ruby/struct:SM::Flow::P 
  body: This method sends a message. If <tt>msgstr</tt> is given, sends it as a message. If block is given, yield a message writer stream. You must write message before the block is closed.
- !ruby/struct:SM::Flow::VERB 
  body: "  # Example 1 (by string)\n  smtp.data(&lt;&lt;EndMessage)\n  From: [email protected]\n  To: [email protected]\n  Subject: I found a bug\n\n  Check vm.c:58879.\n  EndMessage\n\n  # Example 2 (by block)\n  smtp.data {|f|\n    f.puts &quot;From: [email protected]&quot;\n    f.puts &quot;To: [email protected]&quot;\n    f.puts &quot;Subject: I found a bug&quot;\n    f.puts &quot;&quot;\n    f.puts &quot;Check vm.c:58879.&quot;\n  }\n"
full_name: Net::SMTP#data
is_singleton: false
name: data
params: (msgstr = nil) {|stream| ...}
visibility: public