By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,651 Members | 1,727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,651 IT Pros & Developers. It's quick & easy.

Send Mails

P: n/a
Dear All

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

Dim mail As MailMessage = New MailMessage()
mail.To = "an*"
mail.From = "an*"
mail.Subject = "this is a test email."
mail.Body = "this is my test email body"
SmtpMail.SmtpServer = "" 'your real server goes here

end sub
Error MSG


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

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

How can I get up from this error?
Dec 8 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
"Anuradha" <an*******> schrieb:
Dear All

Please always stay in the original thread!

M S Herfried K. Wagner
M V P <URL:>
V B <URL:>
Dec 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.