kool_samule Posted May 18, 2010 Share Posted May 18, 2010 Hi Chaps, I've been searching on Google for ages now and can't seem to find a solution that works. I have a mail script: $to = '[email protected]'; $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 <[email protected]>' . "\r\n"; $sent = mail("$to", "$subject", "$message", "$headers") ; This code is tried and tested on a UNIX server and sends to Hotmail accounts. However, I had to change this: $headers .= 'From: Webmaster <[email protected]>' . "\r\n"; to this: $headers .= 'From: [email protected]' . "\r\n"; to even get mail() to work on my work IIS server, but it doesn't send to Hotmail accounts. 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? Link to comment https://forums.phpfreaks.com/topic/202175-php-mail-on-iis-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.