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
saying

Dim mail As MailMessage = New MailMessage()
mail.To = "an*@lanka.com"
mail.From = "an*@yourcompany.com"
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
Dec 8 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Anuradha" <an*******@lankaequities.com> schrieb:
Dear All


Please always stay in the original thread!

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Dec 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.