C
chuckdfoster
I am getting a "Could Not Access CDO.Message Object" Error when I try to use
the following code to send an email via ASP.NET. When I run this on one
machine it works, on another one it doesn't. Both have VS.NET installed and
both have MS Outlook installed. What do I need done to the machine that
doesn't work? Or is something wrong with the code?
Dim email as New System.Web.Mail.Message
email.To = "(e-mail address removed)"
email.Subject = "Test Subject"
email.Body = "Test Body"
System.Web.Mail.SmtpMail.SmtpServer = "MyMailServer"
Try
System.Web.Mail.SmtpMail.Send(email)
Catch ex as Exception
lblError.Text = ex.Message
End Try
Thanks in advance!
the following code to send an email via ASP.NET. When I run this on one
machine it works, on another one it doesn't. Both have VS.NET installed and
both have MS Outlook installed. What do I need done to the machine that
doesn't work? Or is something wrong with the code?
Dim email as New System.Web.Mail.Message
email.To = "(e-mail address removed)"
email.Subject = "Test Subject"
email.Body = "Test Body"
System.Web.Mail.SmtpMail.SmtpServer = "MyMailServer"
Try
System.Web.Mail.SmtpMail.Send(email)
Catch ex as Exception
lblError.Text = ex.Message
End Try
Thanks in advance!