- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
JS/Flash Animated. Contact form and PHP4
April 1, 2012
This tutorial shows how to make HTML contact form in your JS or Flash Animated template work on PHP 4 hosting server.
1. Open MailHandler.php file
2. Replace the code:
try{ if(!mail($owner_email, $subject, $messageBody, $headers)){ throw new Exception('mail failed'); }else{ echo 'mail sent'; } }catch(Exception $e){ echo $e->getMessage() ."\n"; }
with
mail($owner_email, $subject, $messageBody, $headers);