I've been searching on Google for ages now and can't seem to find a solution that works.
I have a mail script:
Code: Select all
$to = 'someone@somewhere.com';
$subject = "You've got Mail!";
$message = 'This is a test Email';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Webmaster <do-not-reply@domain.com>' . "\r\n";
$sent = mail("$to", "$subject", "$message", "$headers") ;However, I had to change this:
to this:$headers .= 'From: Webmaster <do-not-reply@domain.com>' . "\r\n";
to even get mail() to work on my work IIS server, but it doesn't send to Hotmail accounts.$headers .= 'From: do-not-reply@domain.com' . "\r\n";
I thought that Hotmail may have blacklisted our work DNS settings, but I can send emails from my work email account to Hotmail account without any problems and IIS and MS Exchange on the same server. . . . .
Is there something else I can try or look for as this is doing my nut in?