File: //usr/local/rvm/gems/ruby-3.0.2/doc/actionview-6.1.4.1/ri/ActionView/Helpers/UrlHelper/mail_to-i.ri
U:RDoc::AnyMethod[iI"mail_to:ETI"+ActionView::Helpers::UrlHelper#mail_to;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JCreates a mailto link tag to the specified +email_address+, which is ;TI"Nalso used as the name of the link unless +name+ is specified. Additional ;TI"BHTML attributes for the link can be passed in +html_options+.;To:RDoc::Markup::BlankLine o;
; [I"G+mail_to+ has several methods for customizing the email itself by ;TI",passing special keys to +html_options+.;T@S:RDoc::Markup::Heading:
leveli : textI"Options;To:RDoc::Markup::List:
@type:BULLET:@items[
o:RDoc::Markup::ListItem:@label0; [o;
; [I"><tt>:subject</tt> - Preset the subject line of the email.;To;;0; [o;
; [I"3<tt>:body</tt> - Preset the body of the email.;To;;0; [o;
; [I"C<tt>:cc</tt> - Carbon Copy additional recipients on the email.;To;;0; [o;
; [I"J<tt>:bcc</tt> - Blind Carbon Copy additional recipients on the email.;To;;0; [o;
; [I"A<tt>:reply_to</tt> - Preset the Reply-To field of the email.;T@S;;
i ;I"Obfuscation;To;
; [I"MPrior to Rails 4.0, +mail_to+ provided options for encoding the address ;TI"Oin order to hinder email harvesters. To take advantage of these options, ;TI"2install the +actionview-encoded_mail_to+ gem.;T@S;;
i ;I"
Examples;To:RDoc::Markup::Verbatim; [I"mail_to "me@domain.com"
;TI";# => <a href="mailto:me@domain.com">me@domain.com</a>
;TI"
;TI")mail_to "me@domain.com", "My email"
;TI"6# => <a href="mailto:me@domain.com">My email</a>
;TI"
;TI"Fmail_to "me@domain.com", "My email", cc: "ccaddress@domain.com",
;TI"2 subject: "This is an example email"
;TI"w# => <a href="mailto:me@domain.com?cc=ccaddress@domain.com&subject=This%20is%20an%20example%20email">My email</a>
;T:@format0o;
; [I"iYou can use a block as well if your link target is hard to fit into the name parameter. ERB example:;T@o;; [I"'<%= mail_to "me@domain.com" do %>
;TI"= <strong>Email me:</strong> <span>me@domain.com</span>
;TI"<% end %>
;TI"*# => <a href="mailto:me@domain.com">
;TI"B <strong>Email me:</strong> <span>me@domain.com</span>
;TI" </a>;T;0:
@fileI"*lib/action_view/helpers/url_helper.rb;T:0@omit_headings_from_table_of_contents_below000[ I";(email_address, name = nil, html_options = {}, &block);T@QFI"UrlHelper;TcRDoc::NormalModule00