Foil spam-bot software
SafeMailLink is a free HttpModule -- written by
Marco Bellinaso -- that encodes the
mailto: links found on the HTML generated by ASP.NET pages, to prevent the action of SPAM-bot software. Links with parameters that pre-fill the mail's subject and body fields are also supported and encoded correctly. E-mail addresses used as text for the e-mail hyperlink are protected as well.
Click here to download the full C# source code, together with a test page and configuration file.