Send Outlook 2010 email using PHP
PHP Snippet 1:
if (!defined("olMailItem")) {define("olMailItem",0);}
$oApp = new COM("Outlook.Application") or die('error');
$oMsg = $oApp->CreateItem(olMailItem);
$oMsg->Recipients->Add("[email protected]");
$oMsg->Subject=$subject;
$oMsg->Body=$message;
$oMsg->Save();
$oMsg->Send();
PHP Snippet 2:
<?php
PHP Snippet 3:
[COM_DOT_NET]
extension=php_com_dotnet.dll