Jump to content

sendmail PHP5 IIS6 problem


Recommended Posts

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('[email protected]','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

Link to comment
https://forums.phpfreaks.com/topic/159325-sendmail-php5-iis6-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.