It seems only people with gmail accounts receives these emails:
function sendEmail($email, $hashid) {
$content = "<p>x</p>";
$fromName = "N";
$fromEmail = "n@n.se";
$to = $email;
$subject = 'y';
$message = $content;
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: ' . $fromName . ' <' . $fromEmail .'>' . " \r\n" .
'Reply-To: '. $fromEmail . "\r\n" .
'X-Mailer: PHP/' . phpversion();
return mail ( $to, $subject, $message, $headers );
}
Is something wrong with the headers?