method
to_mailtext
v2_2_9 -
Show latest stable
- Class:
URI::MailTo
to_mailtext()public
Returns the RFC822 e-mail text equivalent of the URL, as a String.
Example:
require 'uri' uri = URI.parse("mailto:[email protected]?Subject=subscribe&cc=myaddr") uri.to_mailtext # => "To: [email protected]\nSubject: subscribe\nCc: myaddr\n\n\n"