Send Mails

A

Anuradha

Dear All

I tried below method to send mails but when the mail sends it gives an error
saying

Dim mail As MailMessage = New MailMessage()
mail.To = "(e-mail address removed)"
mail.From = "(e-mail address removed)"
mail.Subject = "this is a test email."
mail.Body = "this is my test email body"
SmtpMail.SmtpServer = "192.168.7.13" 'your real server goes here
SmtpMail.Send(mail)

end sub


Error MSG

====================================

An unhandled exception of type 'System.Web.HttpException' occurred in
system.web.dll

Additional information: Could not access 'CDO.Message' object.

=====================================
How can I get up from this error?


Thx
Anuradha
 

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

Top