Hi guys, im having a really difficult time recieving any emails from my contact form. I got the contact work working perfectly, when you fill the fields out and select ‘submit’ it does just that, and confirms it with’Thankyou, your message was sent’ however, when i check my email, i dont ever recieve anything from it! Im at a loss, i must have tried a hundred times, but still nothing.
this is the code im currently using for my contact.php, can you see anything wrong with it: -
$your_company = $_GET['company']; $your_name = $_GET['name']; $your_phone = $_GET['phone']; $your_email = $_GET['email']; $your_message = $_GET['message']; $recipient_email = "email@example.com";
$subject = "from " . $your_email;
$headers = “From: " . $your_name . " <” . $your_email . “>n”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’;
$content = "<html><head><title>Contact letter</title></head><body>
$content .= "Company: " . $your_company . "
$content .= "Name: " . $your_name . "
$content .= "Phone: " . $your_phone . "
$content .= "E-mail: " . $your_email . "
$content .= $your_message;
$content .= "
im ripping me hair out, trying to get this to work and im at a complete loss. Many thanxs.
Mod Edit: Added PHP tags for readability