My PHP form is sending me blank emails.
I'm not sure where the issue is and wondered if anyone would be kind enough to help out.
Here's the HTML
<div class="form">
<form method="post" action="send_contact.php">
<div class="form_row">
<label>Your Name:</label>
<input type="text" name="name" class="main_input" />
</div>
<div class="form_row">
<label>Your Email:</label>
<input type="text" name="email" class="main_input" />
</div>
<div class="form_row">
<label>Type of Inquiry:</label>
<input type="text" name="inquiry" class="main_input" />
</div>
<div class="form_row">
<label>Your Message:</label>
<textarea name="message" class="main_textarea"></textarea>
</div>
<div class="form_row">
<input type="submit" class="submit" value="Submit" >
</div>
</div>
</form>
</div>
Here's the PHP
<?php
$subject = "$inquiry";
$message = "$message";
$mail_from = "$email";
$header = "from: $name <$mail_from>";
// Enter your email address
$to ='inquiries@openrhythmnetwork.com';
$send_contact = mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
Literally, all I'm receiving is a blank email with no subject heading...