There was a problem loading the comments.

Could not access 'CDO.Message'

Support Portal  »  Knowledgebase  »  Viewing Article

If you are getting "Could not access 'CDO.Message' Object when trying to send email using ASP.NET (System.Web.Mail)! Please see below to solve this problem?

Our mail servers require authentication to send emails throught.
In order to send emails use the following code:'------------------

oMsg.From = ""

oMsg.To = ""

oMsg.Subject = "subject here"

oMsg.BodyFormat = Web.Mail.MailFormat.Html

oMsg.Body = "Body here"

Dim oMsg As New Web.Mail.MailMessage'---authentication

oMsg.Fields("") = "ip or"

'or localhost

oMsg.Fields("") = 25

oMsg.Fields("") = 2

oMsg.Fields("") = 1

'whether you use authentication on the server

oMsg.Fields("") = "youremail-in-the-same-server"

oMsg.Fields("") = "pass-of-that-email"

oMsg.Fields("") = 60


Web.Mail.SmtpMail.SmtpServer = "ip or"

'or localhost


Share via
Did you find this article useful?  

Related Articles


Add Comment

Replying to  

Self-Hosted Help Desk Software by SupportPal