| Class | URI::MailTo | 
| In: | 
                
                lib/uri/mailto.rb
                
         | 
        
| Parent: | Generic | 
RFC2368, The mailto URL scheme
| DEFAULT_PORT | = | nil | 
| COMPONENT | = | [ :scheme, :to, :headers ].freeze | 
| headers | [R] | |
| to | [R] | 
Creates a new URI::MailTo object from components of URI::MailTo with check. It is to and headers. It provided by an Array of a Hash. You can provide headers as String like "subject=subscribe&cc=addr" or Array like [["subject", "subscribe"], ["cc", "addr"]]
Creates a new URI::MailTo object from ``generic’’ components with no check. Because, this method is usually called from URI::parse and the method checks validity of each components.
  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"