から
例として実際に使用すると、Outlookに直接接続することができます。
<?php
$subject="This is a test message";
$message="This is a Body Section now.....! :)";
$to="[email protected]";
// starting outlook
com_load_typelib("outlook.application");
if (!defined("olMailItem")) {define("olMailItem",0);}
$outlook_Obj = new COM("outlook.application") or die("Unable to start Outlook");
//just to check you are connected.
echo "Loaded MS Outlook, version {$outlook_Obj->Version}\n";
$oMsg = $outlook_Obj->CreateItem(olMailItem);
$oMsg->Recipients->Add($to);
$oMsg->Subject=$subject;
$oMsg->Body=$message;
$oMsg->Save();
$oMsg->Send();
?>
、あなたは(私の場合は、PHP 5.3を持っている)のphp.iniの終わりに
[COM_DOT_NET]
extension=php_com_dotnet.dll
が追加されていることを確認してください:次のコードは、単に箱から出して動作します私にとって
はい私は同意します。それは交換です。私はそれを持っている、どうやってそれについて行く? – user127886