Click to See Complete Forum and Search --> : sending email automatically with ASP using CDO - getting (0x8004020F)


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

crmpicco
08-19-2006, 10:39 AM
Something I thought is worth mentioning when I change the To. address to mail@crmpicco.co.uk (another address at crmpicco.co.uk) it works fine. Is it only allowing me to send to other mailboxes on my domain?

My domain/package is with themooseisloose FYI.

Picco

crmpicco
08-29-2006, 11:16 AM
could this be something to do with my server disallowing it?

russell
08-29-2006, 12:40 PM
yes. smtp server is configured not to relay outside of domain