data(msgstr = nil) public

This method sends a message. If msgstr 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.

  # Example 1 (by string)<<EndMessage)
  Subject: I found a bug

  Check vm.c:58879.

  # Example 2 (by block) {|f|
    f.puts "From:"
    f.puts "To:"
    f.puts "Subject: I found a bug"
    f.puts ""
    f.puts "Check vm.c:58879."
Show source
Register or log in to add new notes.