D
DanB
When I try to send email using the System.Web.Mail namespace
I get an exception of
Could not Create CDO.message object.
FYI - I worked for a long time with a similar exception of
"Could not create CDO.message object". I think I resolved that by
registering CDO.dll.
I am running VB.NET 2002, Framework 1.0 (Even though I have installed
Framework 1.1 - it still says I am running 1.0 when I pull up the IDE about
box)
This is the code attached to a button
Dim mMail As SmtpMail
'mMail.SmtpServer = "smtp-server.kc.rr.com"
mMail.SmtpServer = "localhost"
'mMail.SmtpServer = "127.0.0.1"
Try
mMail.Send("(e-mail address removed)", "(e-mail address removed)", "Test", "Test body")
Catch ex As Exception
MsgBox("The following exception occurred: " + ex.ToString())
'check the InnerException
While Not (ex.InnerException Is Nothing)
MsgBox("The following InnerException reported: " +
ex.InnerException.ToString())
ex = ex.InnerException
End While
End Try
Anybody know my next step
I get an exception of
Could not Create CDO.message object.
FYI - I worked for a long time with a similar exception of
"Could not create CDO.message object". I think I resolved that by
registering CDO.dll.
I am running VB.NET 2002, Framework 1.0 (Even though I have installed
Framework 1.1 - it still says I am running 1.0 when I pull up the IDE about
box)
This is the code attached to a button
Dim mMail As SmtpMail
'mMail.SmtpServer = "smtp-server.kc.rr.com"
mMail.SmtpServer = "localhost"
'mMail.SmtpServer = "127.0.0.1"
Try
mMail.Send("(e-mail address removed)", "(e-mail address removed)", "Test", "Test body")
Catch ex As Exception
MsgBox("The following exception occurred: " + ex.ToString())
'check the InnerException
While Not (ex.InnerException Is Nothing)
MsgBox("The following InnerException reported: " +
ex.InnerException.ToString())
ex = ex.InnerException
End While
End Try
Anybody know my next step