Forum: Ruby on Rails mail_to tag

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mahendra (Guest)
on 2007-06-14 13:02

  In my html i use textarea and on submit button i want to place
content in body of mailer opened using mail_to tag.
how it is possible. I am using the ruby code.
shai (Guest)
on 2007-06-14 13:33
first off, make sure that the content you want to be in the body is
( content_var = "text submitted in texarea" )

and then:

mail_to "email@someplace", "Mail to someplace", :body => content_var

which will create a link

<a href="mailto:
   Mail to someplace

neat enough?
btw, generally speaking, there is a cool api for ruby on rails called,
(suprisingly enough)

 i found the above info right here:

This topic is locked and can not be replied to.