MailMessage problems

C

Cameron Eckman

I get the error "Could not access 'CDO.Message' object" whether I try to use
email on the machine I have. XP professional. It works fine on NT 2000
box. Below is the code:

Dim oMail As New MailMessage()

With oMail
.From = "(e-mail address removed)"
.To = "(e-mail address removed)"
.Subject = "Test SMTP"
End With

SmtpMail.SmtpServer = "localhost" ' Same with or without this
line
SmtpMail.Send(oMail)

Is it a permissions issue? If so, what do I need to set? If not, what is
the problem? Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top