|
Try VbCrLf & "Comments: " & Replace(Trim(strComments), "<", "<") in asp classic, or VbCrLf & "Comments: " & Trim(strComments).Replace(">", ">") in .net for starters. But it sounds like that's not much of a concern. It's been a while since I've turned the built-in validation on or off ... it's a page directive, but I can't remember which one; probably also in web.config. Searching on MSDN shout be fruitful.
Once the email is created on the web server with your asp code, and then sent ... is this inside your own private network? There are two "in transit" paths - from the client's web browser to your web server, then from your mail server to the recipient's Outlook box. An SSL cert will secure the first part; if the second happens inside your network, you're okay on that end.
A denial of service attack is when a hacker tries to bring down a web site by pegging the CPU. You removed the email address to prevent spam; imagine instead if some punk finds your page, and keeps hitting submit and refresh. That's not just spam, it's going to slow your site down, because creating and sending an email is a pretty "expensive" or slow thing to do. I wasn't sure what exactly you were trying to secure, so making general suggestions. Those last two are pretty elaborate, and mainly help with just one specific issue.
|