crmpicco
08-19-2006, 10:33 AM
I seem to be getting nowhere fast with this problem. I am attempting to send email automatically with my ASP script (named sendEmailCDO.sys).
I am recieving this error:
Error Type:
(0x8004020F)
The event class for this subscription is in an invalid partition
/picco/sendEmailCDO.asp, line 24
==============================================
I am trying to send it from my server (at crmpicco.co.uk). craig@crmpicco.co.uk is a valid address on that domain.
Line 24 is the Send line.
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.crmpicco.co.uk"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "craig@crmpicco.co.uk"
.To = "crmpicco@hotmail.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
Any help appreciated.
Picco
I am recieving this error:
Error Type:
(0x8004020F)
The event class for this subscription is in an invalid partition
/picco/sendEmailCDO.asp, line 24
==============================================
I am trying to send it from my server (at crmpicco.co.uk). craig@crmpicco.co.uk is a valid address on that domain.
Line 24 is the Send line.
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.crmpicco.co.uk"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "craig@crmpicco.co.uk"
.To = "crmpicco@hotmail.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
Any help appreciated.
Picco