Sending E-Mail Error Html Form Using Php Script

Doing this is pointless as all it does is convert untainted variables into tainted variables.

You need to validate (or at least sanitize) all of the $_POST fields before copying those tainted variables to untainted ones - in order to make sure the untainted variables remain untainted.

(tainted means that the variable potentially contains garbage or worse - untainted means it is known to contain valid content)

A bit late for your deadline but you mentioned using WordPress. There is a nice plugin called Contact Form 7 :wink: