Hey,
Can anyone help me find out why this code does not send an email, i get no errors but the email just does not send, do you think there is an error somewhere?
if(isset($_POST['tick'])){
$tick = "No";
} else {
$tick = "Yes";
}
// Send email to info @
$msg = "<h3>New Member Registration</h3>
<table>
<tr>
<td>Name:</td><td>".$_POST['name']."</td></tr>
<tr>
<td>Address 1:</td><td>".$_POST['address_1']."</td>
</tr>
<tr>
<td>Address 2:</td><td>".$_POST['address_2']."</td>
</tr>
<tr>
<td>Postcode:</td><td>".$_POST['postcode']."</td>
</tr>
<tr>
<td>Email address:</td><td>".$_POST['email']."</td>
</tr>
<tr>
<td>Tel no - home:</td><td>".$_POST['tel_home']."</td>
</tr>
<tr>
<td>Tel no - work:</td><td>".$_POST['tel_work']."</td>
</tr>
<tr>
<td>Tel no - mobile:</td><td>".$_POST['tel_mobile']."</td>
</tr>
<tr>
<td>Date of Birth:</td><td>".$_POST['DOB']."</td>
</tr>
<tr>
<td>Delivery date (if appropriate):</td><td>".$_POST['delivery']."</td></tr>
</table>
<br/>
<table>
<tr>
<td>Name of other adults:</td><td>Postcode</td>
</tr>
<tr>
<td>".$_POST['name_adult_1']."</td><td>".$_POST['adult_postcode_1']."</td>
</tr>
<tr>
<td>".$_POST['name_adult_2']."</td><td>".$_POST['adult_postcode_2']."</td></tr>
</table>
<br/>
<table>
<tr>
<td>Name of child:</td><td>Date of Birth</td><td>Boy/Girl</td>
</tr>
<tr>
<td>".$_POST['name_child_1']."</td><td>".$_POST['child_dob_1']."</td><td>".$_POST['child_boy_1']."</td></tr>
<td>".$_POST['name_child_2']."</td><td>".$_POST['child_dob_2']."</td><td>".$_POST['child_boy_2']."</td></tr>
<td>".$_POST['name_child_3']."</td><td>".$_POST['child_dob_3']."</td><td>".$_POST['child_boy_3']."</td></tr>
<td>".$_POST['name_child_4']."</td><td>".$_POST['child_dob_4']."</td><td>".$_POST['child_boy_4']."</td></tr>
<td>".$_POST['name_child_5']."</td><td>".$_POST['child_dob_5']."</td><td>".$_POST['child_boy_5']."</td></tr>
<td>".$_POST['name_child_6']."</td><td>".$_POST['child_dob_6']."</td><td>".$_POST['child_boy_6']."</td></tr>
</table>
<br/>
<table>
<tr>
<td>Do any of the persons listed above have specific dietary requirements?</td><td>".$_POST['dietary']."</td>
</tr>
<tr>
<td>How did you hear about Glo Family</td>
<td>".$_POST['hear']."</td>
</tr>
</table>
<br/>
<table>
<tr>
<td>How did you hear about Glo Family</td>
<td>".$tick."</td>
</tr>
</table>
";
$to = "ibrar@freemanholland.com";
$from = "noreply@glofamily.com";
$subject = "New registration Glo Family website";
$headers = "From: $from\\r\
";
$headers .= "Content-type: text/html\\r\
";
mail($to, $subject, $msg, $headers);
Can you see any problems above?
Thanks