natewex
Power Member
- Sep 22, 2009
- 619
- 135
Want a basic fill out form on a site Im doing.
http://www.freecontactform.com/email_form.php
Have pasted the first lot of code into my contact form and its showing up just fine.
The second lot of code, the php, seems to be working on my site also (e.g. I fill out the form, click send and get the thank you for submitting page) -- BUT the mail doesnt come through to my inbox!
I have put my email in the first paragraph in the php:
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "[email protected]";
$email_subject = "Your email subject line";
... and filled out the subject line also. But it still doesnt work!
Do I have to edit something here:
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
Thanks guys!
http://www.freecontactform.com/email_form.php
Have pasted the first lot of code into my contact form and its showing up just fine.
The second lot of code, the php, seems to be working on my site also (e.g. I fill out the form, click send and get the thank you for submitting page) -- BUT the mail doesnt come through to my inbox!
I have put my email in the first paragraph in the php:
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "[email protected]";
$email_subject = "Your email subject line";
... and filled out the subject line also. But it still doesnt work!
Do I have to edit something here:
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
Thanks guys!