php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14211 Method invocation of COM objects
Submitted: 2001-11-24 11:52 UTC Modified: 2001-12-06 11:49 UTC
From: tushev at adviser dot ru Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.6 OS: Windows NT 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 + 9 = ?
Subscribe to this entry?

 
 [2001-11-24 11:52 UTC] tushev at adviser dot ru
It is impossible to involve a method of COM object in the next script:

$objMail = new COM("CDONTS.NewMail");
$objMail->From    = "tushev@adviser.ru";
$objMail->To      = "tushev@adviser.ru";
$objMail->Subject = "Mail throughout COM";
$objMail->Body    = "Body of the message";
$objMail->Send();

The string "$objMail->Send();" prints next text: 
Invoke() failed: Exception occurred

But identical script writen on ASP works fine on the same server.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-25 12:49 UTC] phanto@php.net
there is no obvious bug in your script. is this com-server available somewhere ? what do i have to install to get it.

harald
 [2001-12-06 11:49 UTC] phanto@php.net
got no feedback. alan directed me to a msdn site mentioning a bug in the CDONTS thingie and i think it is related to it. will investigate this. closing for now (not an obvious php bug)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 23:01:33 2024 UTC