Professional Web Applications Themes

Email error -- CDO.Message Object, could not access - ASP.NET General

Can anyone help me with this error. "Could not access 'CDO.Message' object." This is from the: "SmtpMail.Send(mailMsg)" command....

  1. #1

    Default Email error -- CDO.Message Object, could not access

    Can anyone help me with this error.
    "Could not access 'CDO.Message' object."

    This is from the: "SmtpMail.Send(mailMsg)" command.

    Charles Guest

  2. #2

    Default Re: Email error -- CDO.Message Object, could not access

    SmtpMail.SmtpServer = "[your mail server here]"
    Show us more code

    "Charles" <net> wrote in message
    news:040501c365c9$ed9a4c50$gbl... 


    MS Guest

  3. #3

    Default Re: Email error -- CDO.Message Object, could not access


    ok,

    Dim mailMsg As New MailMessage()
    With mailMsg
    .From = txtFrom.Text.Trim
    .To = txtTo.Text.Trim
    .Cc = txtCC.Text.Trim
    .Bcc = txtBCC.Text.Trim
    .Subject = txtSubject.Text.Trim
    .Body = sb.ToString
    .Priority = CType(cboPriority.SelectedIndex, MailPriority)

    If Not IsNothing(arlAttachments) Then
    Dim mailAttachment As Object
    For Each mailAttachment In arlAttachments
    .Attachments.Add(mailAttachment)
    Next
    End If
    End With

    SmtpMail.SmtpServer = "127.0.0.1"
    ' " I have tried SmtpMail.SmtpServer = weiserver, localhost, smarthost,
    and 127.0.0.1 "
    SmtpMail.Send(mailMsg)

    always the same error and my default SMTP virtual server is running.




    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Charles Guest

  4. #4

    Default Re: Email error -- CDO.Message Object, could not access

    Agusitn,

    You are the best.
    Thank you. How did you come up with this?
    What is the reasoning behind it working.
    Is this a SmtpServer Collection that the system will try until it finds a
    good one??

    Thanks

    "Agusitn Rodriguez" <com> wrote in message
    news:OTp$phx.gbl... [/ref][/ref]
    smarthost, 
    > >
    > >[/ref]
    >
    >[/ref]


    MS Guest

  5. #5

    Default Re: Email error -- CDO.Message Object, could not access

    How did you come up with this? & What is the reasoning behind it working.
    - Well the way I figure is that since insert is an inherited method from
    string class it would be like accessing and updating the property value from
    within

    Is this a SmtpServer Collection that the system will try until it finds a
    good one??
    No, But but you can handle exceptions and have the property updated to the
    next server on a list and retry.

    "MS News (MS ILM)" <com> wrote in message
    news:phx.gbl... [/ref]
    following [/ref][/ref]
    MailPriority) [/ref]
    > smarthost, [/ref][/ref]
    running. 
    > >
    > >[/ref]
    >
    >[/ref]


    Agusitn Guest

Similar Threads

  1. Email Site-Wide Error message (with code snippet)
    By Dwight in forum Coldfusion - Advanced Techniques
    Replies: 6
    Last Post: May 5th, 07:36 PM
  2. Expected a dict. object error message
    By cguerrero@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 4
    Last Post: May 2nd, 09:39 PM
  3. Could not access 'CDO.Message' object
    By Nathan Alden in forum ASP.NET General
    Replies: 11
    Last Post: August 21st, 09:19 AM
  4. error message (email)
    By reaton in forum Windows XP/2000/ME
    Replies: 3
    Last Post: July 18th, 10:17 PM
  5. Could not access CDO.Message object in IIS6.0
    By Desmond in forum ASP.NET Security
    Replies: 3
    Last Post: July 11th, 06:08 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