Try this:
Dim objMessage, objConfig
Set objMessage = Server.CreateObject("CDO.Message")
Set cdoConfig = Server.CreateObject("CDO.Configuration")
With cdoConfig .Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
.Update
End With
With cdoMessage
>
> .Configuration = cdoConfig
>
>
> .From = "[EMAIL PROTECTED]"
>
> .To = "[EMAIL PROTECTED]
>
> .Subject = "Query"
>
> .HTMLBody = strBody
>
>
>
> .Send
>
> End With
>
>
> Set cdoMessage = Nothing
>
> Set cdoConfig = Nothing
Goodluck!!!
On Thu, 17 Mar 2005 14:26:21 -0000, hythamabd <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I am trying to send email from asp page to yahoo but i cannot send
> this email always i get this error "(0x8004020F)
> The event class for this subscription is in an invalid partition"
>
> sch = "http://schemas.microsoft.com/cdo/configuration/"
>
>
>
> Set cdoConfig = Server.CreateObject("CDO.Configuration")
>
>
>
> With cdoConfig.Fields
>
> .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
>
> .Item(sch & "smtpserver") = "HOMAIL01.hytham.com"
>
> .update
>
> End With
>
>
>
> Set cdoMessage = Server.CreateObject("CDO.Message.1")
>
>
>
> With cdoMessage
>
> Set .Configuration = cdoConfig
>
>
> .From = "[EMAIL PROTECTED]"
>
> .To = "[EMAIL PROTECTED]
>
> .Subject = "Query"
>
> .HTMLBody = strBody
>
>
>
> .Send
>
> End With
>
>
> Set cdoMessage = Nothing
>
> Set cdoConfig = Nothing
>
> Pls if any one know how to solve this problem pls give me the
> solution quickly.
> Thanks in Advance
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
> ________________________________
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/