jamesmcd87 Posted May 22, 2009 Share Posted May 22, 2009 I am attempting to configure IIS6 and PHP5 to enable the sending of email on my local machine for testing purposes. I have followed several tutes to configure the Default virtual Mail Server for IIS6, setting relay and connection details for 127.0.0.1 and localhost, and the php.ini sendmail settings and attempted to execute the following simple test script... <?php if(mail('me@somewhere.com','test subject','test message')) { echo "ok"; } else { echo "not ok"; } ?> Obviously I would have my actual gmail email address in place of the me@somewhere. Php.ini settings are... [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = root@localhost My problem is that the script returns 'OK', but I am not receiving any emails. Does any one have any suggestions as to things I could look into? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/159325-sendmail-php5-iis6-problem/ Share on other sites More sharing options...
trq Posted May 22, 2009 Share Posted May 22, 2009 This is an smtp server issue, not php. The mail function is working. Quote Link to comment https://forums.phpfreaks.com/topic/159325-sendmail-php5-iis6-problem/#findComment-840323 Share on other sites More sharing options...
jamesmcd87 Posted May 23, 2009 Author Share Posted May 23, 2009 Ok, cool, thanks. any ideas on how to rectify or further troubleshoot? This is an smtp server issue, not php. The mail function is working. Quote Link to comment https://forums.phpfreaks.com/topic/159325-sendmail-php5-iis6-problem/#findComment-840541 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.