473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CDO XP IIS 5.1 Error Message

Recently upgraded to an XP pro machine. Moving from CDONTS to CDO. CDO
generates an error message when I try to send a message:

"The event class for this subscription is in an invalid partition "

Here's the code:

set mailer = server.createobject("cdo.message")
Set cdoConfig = Server.CreateObject("CDO.Configuration")
sch = "http://schemas.microsoft.com/cdo/configuration/"
With cdoConfig.Fields
.Item(sch & "sendusing") = 2
.Item(sch & "smtpserver") = "localhost"
.Update
End With

Set mailer.Configuration = cdoConfig
mailer.subject = this_subject
mailer.from = this_from
mailer.to = this_to
mailer.HtmlBody = "test"
mailer.TextBody = "test"
mailer.send
set mailer = nothing
I only started using the cdoConfig object to change the configuration
because I had a "Send Using" error. I have been all over the Net with no
luck. MSDN provides very little info. Any help would be appreciated.

Thanks!
Jul 19 '05 #1
3 1663
http://www.aspfaq.com/2305

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steven Tisdale" <st****@mlsidx.com> wrote in message
news:40***********************@news.twtelecom.net. ..
Recently upgraded to an XP pro machine. Moving from CDONTS to CDO. CDO
generates an error message when I try to send a message:

"The event class for this subscription is in an invalid partition "

Here's the code:

set mailer = server.createobject("cdo.message")
Set cdoConfig = Server.CreateObject("CDO.Configuration")
sch = "http://schemas.microsoft.com/cdo/configuration/"
With cdoConfig.Fields
.Item(sch & "sendusing") = 2
.Item(sch & "smtpserver") = "localhost"
.Update
End With

Set mailer.Configuration = cdoConfig
mailer.subject = this_subject
mailer.from = this_from
mailer.to = this_to
mailer.HtmlBody = "test"
mailer.TextBody = "test"
mailer.send
set mailer = nothing
I only started using the cdoConfig object to change the configuration
because I had a "Send Using" error. I have been all over the Net with no
luck. MSDN provides very little info. Any help would be appreciated.

Thanks!

Jul 19 '05 #2
Only number #5 really worked from that article. I got it to work by
specifiying Pickup instead of Port and then pointing it to the pickup
directory. Specifying the pickup directory doesn't feel like the best way to
approach this...any ideas why cdoSendUsingPort wouldn't work?

Thanks for the reply.

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
http://www.aspfaq.com/2305

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steven Tisdale" <st****@mlsidx.com> wrote in message
news:40***********************@news.twtelecom.net. ..
Recently upgraded to an XP pro machine. Moving from CDONTS to CDO. CDO
generates an error message when I try to send a message:

"The event class for this subscription is in an invalid partition "

Here's the code:

set mailer = server.createobject("cdo.message")
Set cdoConfig = Server.CreateObject("CDO.Configuration")
sch = "http://schemas.microsoft.com/cdo/configuration/"
With cdoConfig.Fields
.Item(sch & "sendusing") = 2
.Item(sch & "smtpserver") = "localhost"
.Update
End With

Set mailer.Configuration = cdoConfig
mailer.subject = this_subject
mailer.from = this_from
mailer.to = this_to
mailer.HtmlBody = "test"
mailer.TextBody = "test"
mailer.send
set mailer = nothing
I only started using the cdoConfig object to change the configuration
because I had a "Send Using" error. I have been all over the Net with no
luck. MSDN provides very little info. Any help would be appreciated.

Thanks!


Jul 19 '05 #3
> any ideas why cdoSendUsingPort wouldn't work?

Yes, something with the configuration of your SMTP server.
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
9
by: Mairhtin O'Feannag | last post by:
Hello, We have two machines we wish to use DPF. They are both RH ES 2.1, with DB2 8.2. I read the documentation CAREFULLY, and added the following line to my db2nodes.cfg file : 1 egret 0
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.