Click to See Complete Forum and Search --> : CDOSYS Error


daub815
06-30-2004, 08:20 AM
The event class for this subscription is in an invalid partition

I got that error with the following code:

<%
Set msmail = Server.CreateObject("CDO.Message")
Set mscon = Server.CreateObject ("CDO.Configuration")

mscon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
mscon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
mscon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
mscon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
mscon.Fields.Update

Set msmail.Configuration = mscon

msmail.To = "kdaub@freylutz.com"
msmail.From = "daub815@yahoo.com"
msmail.Subject = "Test"
msmail.HtmlBody = "Testing"
msmail.Send
%>

If Someone Could Help, Then That Would Be Great. Thank You.

simflex
06-30-2004, 11:14 AM
You could be missing the cdo library.

Stick this code at the top of your page outside of <% %> and see what happens.

<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows XP Library" -->

DMouse
07-01-2004, 08:12 PM
Hey,

I would be interested in how you got on with this problem and any solutions you came up with ?

Cheers

daub815
07-06-2004, 07:26 AM
I haven't Gotten Around to Checking Using that code because of another problem that has come up. I'll let you know though.

daub815
07-06-2004, 08:06 AM
I got around to it. Thank you for the library code. It worked. Thank you.