My contact form is not sending email. Please help!?
I am new to the whole php thing. I recently created a contact form following a few tutorials. I followed them and did exactly as the presenter told me to do. When I test the form, I get the success confirmation, but the actual email from is not sent to the webmaster specified. Can someone take a look at my code and let me know where I went wrong?
and you have the from email variable as $email but i can’t see where $email is set in the script??
[php]$headers = “From: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;
$success = mail($webMaster, $emailSubject, $body, $headers);[/php]
I take it these come from another script?
i did try your script (obviously changing the variables to my own email address) and it works just fine.