Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How to make spam-free emails on site?


Reply


6 Posts   3116 Views

Avatar
rceee

Community Member, 18 Posts

22 May 2009 at 9:48am

What is the best way to handle spam-proof (or at least resistant) mailto: links in SS?

I have tried encoding, using http://www.ianr.unl.edu/email/encode/, but inserting this into the text editor, even using "insert HTML" mode, reformats it to regular text.

Avatar
AdamJ

Community Member, 145 Posts

22 May 2009 at 1:21pm

What text editor are you using?

Avatar
rceee

Community Member, 18 Posts

22 May 2009 at 1:47pm

Just the built-in TinyMCE that comes with SS 2.3.1.

Avatar
AdamJ

Community Member, 145 Posts

22 May 2009 at 2:55pm

Right. I think TinyMCE will just do that no matter what you do. Unless the dev's add some functionality to encode email addresses for us automatically (which would be a cool feature in my opinion). Maybe you could add it as a feature request to the trac?

Avatar
banal

Community Member, 901 Posts

22 May 2009 at 7:28pm

Hi

Usually I tell my clients to not insert any plain mailto: links in the content. Instead, they should use something like address(at)domain.tld. I then use a jQuery plugin like this: http://www.ia-stud.hiof.no/~joakims/projects/defuscator/ to convert all the obfuscated mails back to "normal" mailto-links.

Avatar
ravid

Community Member, 6 Posts

2 February 2010 at 5:12am

see http://www.silverstripe.org/customising-the-cms/show/278119#post278119 for a possible solution