I am trying to send an email with the following code:
[VB]
Dim smt As System.Web.Mail.SmtpMail
Dim sm As New System.Web.Mail.MailMessage()
sm.To = registry.Read(clspmRegistry.RegKeysEnum.EmailErrors)
sm.Subject = strSubject
sm.From = strFron
sm.Body = strBody
sm.Priority = Web.Mail.MailPriority.High
smt.SmtpServer = "[my email server]"
smt.Send(sm)
[/VB]
I am getting "Could not access CDO.Message object." ?? I am finding alot of references to this problem but no solutions on the web. Got any ideas?
Also, what I really need to do is send through an email server that requires a username and a password but I dont see any properties for this object that allows those to be set....
Is there a better way??
[VB]
Dim smt As System.Web.Mail.SmtpMail
Dim sm As New System.Web.Mail.MailMessage()
sm.To = registry.Read(clspmRegistry.RegKeysEnum.EmailErrors)
sm.Subject = strSubject
sm.From = strFron
sm.Body = strBody
sm.Priority = Web.Mail.MailPriority.High
smt.SmtpServer = "[my email server]"
smt.Send(sm)
[/VB]
I am getting "Could not access CDO.Message object." ?? I am finding alot of references to this problem but no solutions on the web. Got any ideas?
Also, what I really need to do is send through an email server that requires a username and a password but I dont see any properties for this object that allows those to be set....
Is there a better way??
Last edited by a moderator: