Hi,
COM is a technology which allows the reuse of code written in any language (by any language) using a standard calling convention and hiding behind APIs the implementation details such as what machine the Component is stored on and the executable which houses it. It can be thought of as a super Remote Procedure Call (RPC) mechanism with some basic object roots.
The Script
Open you favorite text editor and put the following lines:
<?PHP
$objApp = new COM("Outlook.Application");
$myItem = $objApp->CreateItem(olMailItem);
$a=$myItem->Recipients->Add("admin@example.org");
$myItem->Subject="This is a test";
$myItem->Body="This is a Body Section now.....!";
$myItem->Display();
$myItem->Send();
?>Thanks,
Fuad
Last edited by Fuad (2008-05-24 03:18:14)
Offline


That is interesting, but who uses PHP on Windows? Even otherwise, PHP has got built in mail function and there are SMTP classes available for anything advanced!
Offline