note 23435 deleted from ref.com by phanto

From: Date: Tue, 06 Aug 2002 00:02:44 +0000
Subject: note 23435 deleted from ref.com by phanto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34352@lists.php.net to get a copy of this message
MS Outlook & PHP This was posted by someone, earlier on in the page: ============================= An easy way to send e-mail using your default Outlook account: <? $objApp = new COM("Outlook.Application"); $myItem = $objApp->CreateItem(olMailItem); $a=$myItem->Recipients->Add("admin@purplerain.org"); $myItem->Subject="Subject"; $myItem->Body="This is a Body Section now.....!"; $myItem->Display(); $myItem->Send(); ?> ========================== I'm running Win NT 4, latest version of PHP on my Apache server (latest ver.) I'm not able to get this to work. I tried opening up a word application and it worked flawlessly (thru a different example on the page). But outlook is having problems. Although the first two lines "$objApp = new COM("Outlook.Application"); $myItem = $objApp->CreateItem(olMailItem);" seem to work okay because it is able to return a version number when I echo it. But anything after that has trouble. I'm running outlook ver 9. Has anyone else run into any similar situations? My goal is to open outlook to access some email-groups and send out a customized email. Basically I need to grab those email addresses in the groups (distribution-lists). Help!

« previous php.notes (#34352) next »