Professional Web Applications Themes

Error Messege Help CDO.Configuration / CDO.Messege - ASP Database

From: "Randy Pitkin" <com> Subject: Error Messege Help CDO.Configuration / CDO.Messege Date: Thursday, September 02, 2004 11:42 AM Using in a ASP Application that Worked For years, Now Fails. sch = "http://schemas.microsoft.com/cdo/configuration/" Set objCDO = CreateObject("CDO.Configuration") objCDO.Fields.Item(sch & "sendusing") = 2 objCDO.Fields.Item(sch & "smtpserver") = SMARTHOST objCDO.fields.update Set cdoMessage = CreateObject("CDO.Message") Set cdoMessage.Configuration = objCDO cdoMessage.From = cMailFrom cdoMessage.To = cMailto cdoMessage.Cc = cMailCC cdoMessage.Subject = cMailSubject cdoMessage.TextBody = cTextBody cdoMessage.HtmlBody = cHtmlBody cdoMessage.Send() I now get error message. a.. Error Type: (0x8004020F) The event class for this subscription is in an invalid partition /ydwork/work/send_invoice.asp, line 83 a.. Browser Type: ...

  1. #1

    Default Error Messege Help CDO.Configuration / CDO.Messege


    From: "Randy Pitkin" <com>
    Subject: Error Messege Help CDO.Configuration / CDO.Messege
    Date: Thursday, September 02, 2004 11:42 AM

    Using in a ASP Application that Worked For years, Now Fails.

    sch = "http://schemas.microsoft.com/cdo/configuration/"
    Set objCDO = CreateObject("CDO.Configuration")
    objCDO.Fields.Item(sch & "sendusing") = 2
    objCDO.Fields.Item(sch & "smtpserver") = SMARTHOST
    objCDO.fields.update

    Set cdoMessage = CreateObject("CDO.Message")
    Set cdoMessage.Configuration = objCDO
    cdoMessage.From = cMailFrom
    cdoMessage.To = cMailto
    cdoMessage.Cc = cMailCC
    cdoMessage.Subject = cMailSubject
    cdoMessage.TextBody = cTextBody
    cdoMessage.HtmlBody = cHtmlBody
    cdoMessage.Send()

    I now get error message.

    a.. Error Type:
    (0x8004020F)
    The event class for this subscription is in an invalid partition
    /ydwork/work/send_invoice.asp, line 83


    a.. Browser Type:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET
    CLR 1.0.3705)

    Please help

    com





    Randy Guest

  2. #2

    Default Re: Error Messege Help CDO.Configuration / CDO.Messege

    What is SMARTHOST? What do cMailFrom, cMailTo and cMailCC look like?
    http://www.aspfaq.com/2305

    --
    http://www.aspfaq.com/
    (Reverse address to reply.)




    "Randy Pitkin" <com> wrote in message
    news:phx.gbl... 


    Aaron Guest

  3. #3

    Default Re: Error Messege Help CDO.Configuration / CDO.Messege

    SMARTHOST is the name of my mailserver ie Mail.mydomin.com
    cMailFrom = the Senders Email address
    cMailTo = the recipients email address
    cmailcc = my email address

    all as strings

    "Aaron [SQL Server MVP]" <noraa> wrote in message
    news:phx.gbl... [/ref]
    ..NET 
    >
    >[/ref]


    Randy Guest

Similar Threads

  1. Impersonation Configuration Error
    By Mills Perry in forum ASP.NET Security
    Replies: 2
    Last Post: July 10th, 06:39 AM
  2. ASP.NET Configuration Error
    By Pratap in forum ASP.NET Security
    Replies: 1
    Last Post: November 14th, 06:05 PM
  3. Configuration error ?
    By Promeneur in forum ASP.NET Security
    Replies: 3
    Last Post: October 9th, 09:30 PM
  4. Configuration Error
    By Shel Blauman [MSFT] in forum ASP.NET General
    Replies: 2
    Last Post: July 7th, 06:23 PM
  5. Configuration Error, out of no where!
    By CHRIS in forum ASP.NET General
    Replies: 0
    Last Post: June 25th, 08:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139