Lately I configured PHP to work on my server with IIS and I noticed that a standard PHP mail function does not appear to be sending any emails from the server. I found out that by default when installing IIS SMTP Server is not included with the installation of IIS and therefore emails cannot be send.
To get this working you need to additionally install SMTP Virtual Server. Installation can be found under:
Control panel -> Add Remove Programs -> Add Remove Windows Components -> Application Server -> IIS -> SMTP Service
Also you might need to configure in:
Computer Management Services and Applications -> IIS -> Default SMTP Virtual Server -> Properties -> Access:
Relay restrictions to grant your local IP address and 127.0.0.1 and make sure that under Connection control -> connection is set to "All except the list below".
Before as I had my PHP configured with Apache on Unix - FreeBSD OS by default Sendmail was set as SMTP Service and there was no need to configure this additionally.
2262f95b-d763-4439-a3ac-a867cadbd8a2|2|5.0