
Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Big thicks are made up of lots of little thins.
Kevin Spencer a écrit :
> The easiest way would be using Visual Studio, with a Solution open, go to
> the References item in the Solution view, right-click and select "Add
> Reference..."
>
> The COM tab shows all the COM objects registered on your machine. I believe
> CDO will be called "Microsoft CDO..." (something or other).
Hello.
I have progressed a little.
I did a regsvr32 cdosys.dll and now I have the following Exception
message :
-----------------------------------------------------------
System.Web.HttpException: Unable to access 'CDO.Message'. --->
System.Reflection.TargetInvocationException: ...... --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered
What dll are used by CDO ?
olrt - 07 Jul 2006 13:27 GMT
I got finally it working.
I commented out SmtpMail.SmtpServer="localhost";
It's weird that when one specify "localhost" in SmtpServer ,
SmtpMail.Send throws an exception !!!
I don't understand why.
So for those who want to have class SmtpMail work :
1°) regsvr32 cdosys.dll
2°) Install a local SMTP Server on the machine and comment
SmtpMail.SmtpServer
Hope it helps !!
Kevin Spencer - 07 Jul 2006 16:41 GMT
Glad you got it working. The "localhost" error is probably a host name
resolution issue. I'm not sure how CDOSYS resolves host names, but putting
in the actual machine name or the IP address will work as well. It defaults
to the local machine in any case.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Big thicks are made up of lots of little thins.
I got finally it working.
I commented out SmtpMail.SmtpServer="localhost";
It's weird that when one specify "localhost" in SmtpServer ,
SmtpMail.Send throws an exception !!!
I don't understand why.
So for those who want to have class SmtpMail work :
1°) regsvr32 cdosys.dll
2°) Install a local SMTP Server on the machine and comment
SmtpMail.SmtpServer
Hope it helps !!
Kevin Spencer - 07 Jul 2006 16:40 GMT
> I have progressed a little.
> I did a regsvr32 cdosys.dll and now I have the following Exception
> message :
You're skipping some important details:
1. Did you *find* a COM object named "cdosys.dll?"
2. Did the registration return a positive or negative response?
Assuming that the DLL is registered, I don't know of any external
dependencies of that DLL. You might try checking out the "Troubleshooting"
webcast from Microsoft:
http://support.microsoft.com/servicedesks/webcasts/seminar/shared/asp/view.asp?u
rl=/servicedesks/webcasts/en/wcd012203/manifest.xml

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Big thicks are made up of lots of little thins.
Kevin Spencer a écrit :
> The easiest way would be using Visual Studio, with a Solution open, go to
> the References item in the Solution view, right-click and select "Add
[quoted text clipped - 3 lines]
> believe
> CDO will be called "Microsoft CDO..." (something or other).
Hello.
I have progressed a little.
I did a regsvr32 cdosys.dll and now I have the following Exception
message :
-----------------------------------------------------------
System.Web.HttpException: Unable to access 'CDO.Message'. --->
System.Reflection.TargetInvocationException: ...... --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered
What dll are used by CDO ?