|
» W3Exchange http://www.w3exchange.com/index.html » PHP http://www.w3exchange.com/view_forum-id-36.html » Sending email using PHP Com functions http://www.w3exchange.com/view_topic-id-3081.html |
| Fuad - 2008-05-24 03:16:20 |
Hi, Code::<?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, |
» Print this topic |