One way to work around the lack of a full implementation of sendmail in PHP is to use the Microsoft Collaboration Data Objects (CDO) Library.
Here is a short example of its usage:
1 2 3 4 5 6 7 8 9
<?php $message = new COM('CDO.Message'); $message->To = 'firstname.lastname@example.org'; $message->From = 'Sender@MyCompany.com'; $message->Subject = 'This is a subject line'; $message->HTMLBody = '<html><body>This is <b>the</b> body!</body></html>'; $message->AddAttachment('http://www.ActiveState.com'); $message->Send(); ?>
One issue on windows is the use of the Mail() function. On Linux systems, you can configure this function to use Sendmail or Qmail to send messages. As of version 4.0.5, this is not available under Windows (feature was added to 4.0.6). The Windows version of PHP includes a built-in implementation for sending emails that is limited to simple messaging.
See http://www.php.net/manual/en/function.mail.php for more information. If you need more capabilities you may need to script your own sendmail implementation, though you should be able to find several by search any of the PHP script repositories.
See http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/cdo/_olemsg_introduction.htm for more information on using the CDO Library.