This is my mail code
<?php
// multiple recipients
$to = 'email@test.com; email@otherdomain.com';
// subject
$subject = 'Let me know if you get this email';
// message
$str = "$body";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Rugby League in New Zealand <website@rugbyleaguenz.com>' . "\r\n";
$message = "$str";
$message = str_replace("\ >", ">", $message);
$message = str_replace('\"', '"', $message);
// Mail it
mail($to, $subject, $message, $headers);
echo "Sent HTML"
?>
When I send it to @.com which is the same server it sends fine. But I send it to another like hotmail, gmail ect it does not send. Does anyone know why?