MailTo Extension
johnmuhl edited this page Aug 24, 2010
·
1 revision
The mail_to extension wraps the built-in Rails mail_to tag, and uses :encode => :javascript to prevent robots from harvesting your email addresses for spam.
Install the mail_to extension by navigating to the root of your Radiant project and running:
./script/extension install mail_to
(If this fails see the manual installation instructions)
Restart your application server then use the tag like this:
<r:mail_to email="random@example.org" />;
or
<r:mail_to email="random@example.org">email me</r:mail_to>
Note that using this with Textile can make the email tag fail; either turn off the page’s textile or wrap the mail_to tag in <notextile></notextile>
.