Um ... the code posted by longstockings and repackaged by acedweb has security vulnerabilities and is NOT compatible with PHP 5.3 conventions.

The better solution would be to use the built-in contact-us capability already in Zen Cart.