Can't figure out how to fix this code...please help

From: Date: Fri, 17 May 2002 19:42:17 +0000
Subject: Can't figure out how to fix this code...please help
Groups: php.windows 
Request: Send a blank email to php-windows+get-13841@lists.php.net to get a copy of this message
This is my code: <?PHP $objApp = new COM("Outlook.Application"); $myItem = $objApp->CreateItem("olMailItem"); $a=$myItem->Recipients->Add("admin@purplerain.org"); $myItem->Subject="This is a test"; $myItem->Body="This is a Body Section now.....!"; $myItem->Display(); $myItem->Send(); ?> This is the error I'm getting... Warning: Invoke() failed: Type mismatch. Argument: 2 in C:\Program Files\Apache Group\Apache2\htdocs\outlook\sendMail.php on line 11 Fatal error: Call to a member function on a non-object in C:\Program Files\Apache Group\Apache2\htdocs\outlook\sendMail.php on line 12 What did I screw up? Thanks, Ron

« previous php.windows (#13841) next »