how to troubleshoot could not access 'CDO.Message' object
-
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
-
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
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