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
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