Encode Your Email Addresses in ExpressionEngine
So here’s a quick tip for you ExpressionEngine users. EE will automatically encode any email addresses that are generated by itself. For example, when you leave a comment on this blog and put in your email address, EE will turn it into a mess of javascript nonsense in the code so that those nasty spiders don’t pick up your email and send you dirty emails.
Sometimes you’ve got to manually encode it, though and that’s where this quick tutorial comes in.
Ready? Here we go:
{encode="bob@bobby.com" title="Email Me!"}
Obviously, the encode
property is your email and the title
is whatever you want. The cool thing is that even if you put your email address in the title, it still gets encoded so the spiders can’t see it. Using the aforementioned block of code creates a mailto: link so you actually save yourself some time writing code! Did I mention I love ExpressionEngine?
Comments
1
Chad - Mar 31, 2008
2
Anny - Apr 19, 2008
3
Richard - May 03, 2008
4
Bobby - May 25, 2008
5
Stan - Jun 02, 2008
Jonathan Longnecker - Jun 03, 2008
7
Richard - Jun 25, 2009
Jonathan Longnecker - Jun 25, 2009
9
Richard - Jun 25, 2009
10
Ian - Jul 13, 2009
Jonathan Longnecker - Jul 13, 2009
12
Jonathan - Aug 28, 2009
13
Santiago - Aug 31, 2009
Jonathan Longnecker - Aug 31, 2009
15
Santiago - Aug 31, 2009
16
Todd - Sep 28, 2009
Jonathan Longnecker - Sep 28, 2009
18
Terry Evans - Jan 12, 2010
Jonathan Longnecker - Jan 12, 2010
20
Terry Evans - Jan 12, 2010
Jonathan Longnecker - Jan 12, 2010
22
Mike Bridgman - Mar 02, 2011
23
Andrea - Feb 28, 2012
24
edward - Mar 28, 2012