I've been havin some troubles with emails not arriving on some addresses, or to be more specific, so some domains (for exampel gmx.com). The emails arrives as they should on some domains, though (for example spray.se or gmail.com).
I've checked and our server IP seems to be all good. No blocks found anywhere.
Is there any critical problem with my code?
$mail_body = "Välkommen till ***!\n\nOm du ej registrerat dig på *** ber vi dig bortse från\ndetta mail.\n\nDin aktiveringskod är:\n" . $activation . "\n\nMvh\nVi på ***"; // Mail body
$subject = "Din aktiveringskod";
$header = "From: *** <no-reply@***.se>\r\n";
ini_set('sendmail_from', 'no-reply@***.se'); // Snabbfix på problem med IIS (5+?)
if(!mail($recipient, $subject, $mail_body, $header)) die ("mail error");
If the email is delivered, there are no errors in it!
I've also tried utf8-encode the whole thing, but that doesn't change anything.
Regards!