Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to troubleshoot could not access 'CDO.Message' object

how to troubleshoot could not access 'CDO.Message' object

Scheduled Pinned Locked Moved Visual Basic
helpcomtutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hisuman100
    wrote on last edited by
    #1

    While sending mail using the following code getting the error message 'could not access 'CDO.Message' object' Can anybody help me. Regards Suman Imports System.Web.Mail Public Class Form1 Inherits System.Windows.Forms.Form Dim mymsg As New MailMessage Dim myserver As SmtpMail Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click mymsg.From = "mahesh@yahoo.com " mymsg.To = "suman100@yahoo.com" mymsg.Subject = "SubjectOfTheMailString" mymsg.Body = "BodyOfTheMailString" myserver.SmtpServer = "mail.yahoo.com" Try myserver.Send(mymsg) Catch ex As Exception MsgBox(ex.Message) End Try End Sub End Class

    K 1 Reply Last reply
    0
    • H hisuman100

      While sending mail using the following code getting the error message 'could not access 'CDO.Message' object' Can anybody help me. Regards Suman Imports System.Web.Mail Public Class Form1 Inherits System.Windows.Forms.Form Dim mymsg As New MailMessage Dim myserver As SmtpMail Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click mymsg.From = "mahesh@yahoo.com " mymsg.To = "suman100@yahoo.com" mymsg.Subject = "SubjectOfTheMailString" mymsg.Body = "BodyOfTheMailString" myserver.SmtpServer = "mail.yahoo.com" Try myserver.Send(mymsg) Catch ex As Exception MsgBox(ex.Message) End Try End Sub End Class

      K Offline
      K Offline
      KreativeKai
      wrote on last edited by
      #2

      Take a look at this link for some help: http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=AEEBA86F-B55A-45A0-96DC-853D6F9BDFAE[^][^]

      Lost in the vast sea of .NET

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups