Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Problem with CDOSYS

    I am having problems when running the following code, I have tried getting
    support from my ISP but they haven't a clue...

    'Creation of the Email Server Object
    Set objMessage = CreateObject("CDO.Message")
    Set objConfig = CreateObject("CDO.Configuration")

    'Here is determined which way emails will be processed (local oder external
    'server). Please always set an external server.

    objConfig.Fields(cdoSendUsingMethod) = cdoSendUsingPort

    'Outgoing SMTP server with SMTP authentication
    objConfig.Fields(cdoSMTPServer) = "post.newnet.co.uk"

    'SMTP port
    objConfig.Fields(cdoSMTPServerPort) = 25
    'Plain text authentication
    objConfig.Fields(cdoSMTPAuthenticate) = cdoBasic

    'account name
    objConfig.Fields(cdoSendUserName) = ""

    'password
    objConfig.Fields(cdoSendPassword) = ""

    objConfig.Fields.Update

    Set objMessage.Configuration = objConfig
    objMessage.To = "somebody@somedomain.com"
    objMessage.From = "somebody@someotherdomain.com"
    objMessage.Subject = "this is my subject"
    objMessage.HTMLBody = "this is my message"

    On Error Resume Next
    objMessage.Send


    It is falling over on the line objConfig.Fields(cdoSendUsingMethod) =
    cdoSendUsingPort
    I am getting the following error -



    Any ideas, suggestions or tutorials would be appreciated.

    Many thanks in advance

    Rob





    The Ox Guest

  2. Similar Questions and Discussions

    1. CDOSYS vs CDONTS
      hello i have resently installed win 2003 web. me and my clients are used to use CDONTS and have meny asp pages configured fore it BUT 2003 uses...
    2. CDOSYS NNTP
      Is it possible to send/receive nntp messages via CDOSYS without a 3rd party news component? The NNTP links I have found appear to be related to MS...
    3. CDOSYS and smarthost
      I'm trying to send an email from my ASP page using CDO.Message and CDO.Configuration. I couldn't get this to work for ages and all my emails ended...
    4. CDOSYS URL namespace... Huh?
      I've looked all over the world (via Google) and found a few sample snippets of CDOSYS Message object. (And even more sites that merely copy the...
    5. cdosys.dll problem
      Hi, I had my ASP .NET application in my windows 2000 Server and IIS5. It had been working fine for 9 months. Because of virus threatening of last...
  3. #2

    Default Re: Problem with CDOSYS

    Post went before I could finish...

    error is

    ADODB.Fields error '800a0bb9'
    Arguments are of the wrong type, are out of acceptable range, or are in
    conflict with one another.

    /test.asp, line 10

    Thanks


    The Ox Guest

  4. #3

    Default Re: Problem with CDOSYS

    The Ox wrote:
    > It is falling over on the line objConfig.Fields(cdoSendUsingMethod) =
    > cdoSendUsingPort
    Do you have cdoSendUsingMethod (and the other cdoXXXXX variables)
    defined somewhere within your code, maybe in an include? If not, then
    that is the probelm, those variable do not contain the values that the
    objects being used expect. Take a look at the code from Microsoft for
    sending email with CDOSYS:
    [url]http://support.microsoft.com/?kbid=286431[/url]
    (don't look in Firefox or Mozilla as M$ somehow botched up the display
    for the <PRE> tag for those browsers)


    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* Guest

  5. #4

    Default Re: Problem with CDOSYS

    You might try setting the config variables using the method I outlined in
    this forum posting:

    [url]http://www.charon.co.uk/aspnetforums/ShowPost.aspx?PostID=3074[/url]

    It's a little different from the method you're using, but I've used it
    successfully.

    Best regards,
    Chris


    Chris In Madison Guest

  6. #5

    Default Re: Problem with CDOSYS

    It's a coding error. ISP's normally shy away from those. You probably
    haven't included the meta data. eg

    <!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
    NAME="CDO for Windows 2000 Type Library" -->
    <!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4"
    NAME="ADODB Type Library" -->

    Another method is just to use the standard constants as Chris outlined in a
    post on my site. Also some info here

    [url]http://www.charon.co.uk/content.aspx?CategoryID=27&ArticleID=26[/url]

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

Posting Permissions

  • You may not post new threads
  • You may 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