[Q] mail() & security

From: Date: Mon, 04 Apr 2005 21:00:40 +0000
Subject: [Q] mail() & security
Groups: php.general 
Request: Send a blank email to php-general+get-212209@lists.php.net to get a copy of this message
I wanted to setup a good 'contact me' page on my website. I do not want to reveal my e-mail address, so I was going to use a form. The PHP script with the actual mail() function would define the To and Subject parameters, so these could not be faked. I also plan to use a captcha. The only concern I had was how to process the body text. Any recommendations? One useful function would appear to be strip_tags, so no one could embed annoying or destructive HTML, etc. which I may accidentally cause my e-mail application to render. Any other suggestions?

« previous php.general (#212209) next »