mail () works great on Linux and Windows.
- On Linux, it sends your mail to the sendmail binary, which does all the work
- The windows actually need to act like an MTA to transfer mail to another application.
On Windows, it is best to set SMTP information so that PHP can transfer mail to another server that takes care of the final delivery.
http://ca2.php.net/manual/en/mail.configuration.php#ini.smtp
This is done (and your web server is rebooted so that the changes affect it), if you still cannot send mail, check the logs for both PHP and the specified MTA to see where things are getting corrupted.
source share