note 23435 added to ref.com

From: Date: Thu, 18 Jul 2002 13:50:49 +0000
Subject: note 23435 added to ref.com
Groups: php.notes 
Request: Send a blank email to php-notes+get-33250@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! -- http://www.php.net/manual/en/ref.com.php http://master.php.net/manage/user-notes.php?action=edit+23435 http://master.php.net/manage/user-notes.php?action=delete+23435 http://master.php.net/manage/user-notes.php?action=reject+23435

« previous php.notes (#33250) next »