473,320 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Web.Mail Problems

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("me@kc.rr.com", "me***@kc.rr.com", "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


Nov 21 '05 #1
12 1241
Hi Dan,

You have 2 problems: my about box shows clearly vs .net 2003 and framework
1.1. Don't know what you did wrong, but you might want to reinstall 1.1 and
or vs into another drivespec.

CDO again - it drives me crazy, and frankly MS has to work on this, as it
can happen for too many reasons. I had a similar cdo problem and solved it
by googling it. On Google there are dozens of articles that can be found on
different possible reasons for this error.

HTH,

Bernie Yaeger

"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...
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("me@kc.rr.com", "me***@kc.rr.com", "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


Nov 21 '05 #2
Thanks for the info Bernie.

Even though I run VB.Net 2002 do you know should Visual Studio be 2003?

I have just re-installed framework 1.1 and that did not fix it. I thought I
read somewhere that you could have both 1.0 and 1.1 installed but you must
tell VB (or is it VS) which one to load. I don't know how to do that if
that is the case.

Do you think this has anything to do with the Web.Mail problem? Because I
have googled this and I have found some of the information helpful. But
nothing on point for this problem of the "Could not create CDO.message".

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Dan,

You have 2 problems: my about box shows clearly vs .net 2003 and framework
1.1. Don't know what you did wrong, but you might want to reinstall 1.1
and or vs into another drivespec.

CDO again - it drives me crazy, and frankly MS has to work on this, as it
can happen for too many reasons. I had a similar cdo problem and solved
it by googling it. On Google there are dozens of articles that can be
found on different possible reasons for this error.

HTH,

Bernie Yaeger

"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...
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("me@kc.rr.com", "me***@kc.rr.com", "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



Nov 21 '05 #3
"DanB" <ag*****@kc.rr.com> schrieb:
When I try to send email using the System.Web.Mail namespace

I get an exception of

Could not Create CDO.message object.


Take a look at <URL:http://www.systemwebmail.net/>.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #4
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having to
do anything other than select the appropriate .exe when opening either one.
I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
Thanks for the info Bernie.

Even though I run VB.Net 2002 do you know should Visual Studio be 2003?

I have just re-installed framework 1.1 and that did not fix it. I thought
I read somewhere that you could have both 1.0 and 1.1 installed but you
must tell VB (or is it VS) which one to load. I don't know how to do that
if that is the case.

Do you think this has anything to do with the Web.Mail problem? Because I
have googled this and I have found some of the information helpful. But
nothing on point for this problem of the "Could not create CDO.message".

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Dan,

You have 2 problems: my about box shows clearly vs .net 2003 and
framework 1.1. Don't know what you did wrong, but you might want to
reinstall 1.1 and or vs into another drivespec.

CDO again - it drives me crazy, and frankly MS has to work on this, as it
can happen for too many reasons. I had a similar cdo problem and solved
it by googling it. On Google there are dozens of articles that can be
found on different possible reasons for this error.

HTH,

Bernie Yaeger

"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...
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("me@kc.rr.com", "me***@kc.rr.com", "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




Nov 21 '05 #5
DanB,
"Could not create CDO.message object". "Create" or "Access"?
I think I resolved that by registering CDO.dll. CDO.DLL has nothing to do with the System.Web.Mail namespace.
System.Web.Mail will use either CDONTS or CDOSYS depending on the OS
version:
http://www.systemwebmail.net/faq/1.5.aspx

FWIW: CDO.DLL is part of Microsoft Outlook & Exchange Server.
It sounds like you don't have CDONTS or CDOSYS installed on your computer.
As I stated CDONTS & CDOSYS are OS dependant.

The following site provides a wealth of information on System.Web.Mail.

http://www.systemwebmail.net/

Topic 4.2.3 starts discussing your message.
http://www.systemwebmail.net/faq/4.2.3.aspx
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) VB.NET 2002 is hared coded to .NET 1.0, if you want to upgrade to .NET 1.1
you need to install VB.NET 2003.

Hope this helps
Jay
"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl... 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("me@kc.rr.com", "me***@kc.rr.com", "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


Nov 21 '05 #6
Nak
> 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)


The IDE about box? As in the VB.NET about box? Version 2002 only supports
framework 1.0, 2003 supports framework 1.1. If you want to compile
assemblies for 1.1 of the framework you will need to upgrade or use
SharpDevelop :-(

Nick.
Nov 21 '05 #7
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't unregister
by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having to
do anything other than select the appropriate .exe when opening either
one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
Thanks for the info Bernie.

Even though I run VB.Net 2002 do you know should Visual Studio be 2003?

I have just re-installed framework 1.1 and that did not fix it. I
thought I read somewhere that you could have both 1.0 and 1.1 installed
but you must tell VB (or is it VS) which one to load. I don't know how
to do that if that is the case.

Do you think this has anything to do with the Web.Mail problem? Because
I have googled this and I have found some of the information helpful.
But nothing on point for this problem of the "Could not create
CDO.message".

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Dan,

You have 2 problems: my about box shows clearly vs .net 2003 and
framework 1.1. Don't know what you did wrong, but you might want to
reinstall 1.1 and or vs into another drivespec.

CDO again - it drives me crazy, and frankly MS has to work on this, as
it can happen for too many reasons. I had a similar cdo problem and
solved it by googling it. On Google there are dozens of articles that
can be found on different possible reasons for this error.

HTH,

Bernie Yaeger

"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...
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("me@kc.rr.com", "me***@kc.rr.com", "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





Nov 21 '05 #8
Nak
Hi there,

It seems like there is so much confusion on this CDO thing, I personally
managed to get it working by installed the CDO objects from the Microsoft
Office XP CD, maybe that is weird, but it worked for me, unless of course
all it done was to re-register the DLL that you are having troubles with.

Do you have Office installed at all? Maybe this can cause an issue, I'm
no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr.com> wrote in message
news:uz**************@TK2MSFTNGP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening either
one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
Thanks for the info Bernie.

Even though I run VB.Net 2002 do you know should Visual Studio be 2003?

I have just re-installed framework 1.1 and that did not fix it. I
thought I read somewhere that you could have both 1.0 and 1.1 installed
but you must tell VB (or is it VS) which one to load. I don't know how
to do that if that is the case.

Do you think this has anything to do with the Web.Mail problem? Because
I have googled this and I have found some of the information helpful.
But nothing on point for this problem of the "Could not create
CDO.message".

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Dan,

You have 2 problems: my about box shows clearly vs .net 2003 and
framework 1.1. Don't know what you did wrong, but you might want to
reinstall 1.1 and or vs into another drivespec.

CDO again - it drives me crazy, and frankly MS has to work on this, as
it can happen for too many reasons. I had a similar cdo problem and
solved it by googling it. On Google there are dozens of articles that
can be found on different possible reasons for this error.

HTH,

Bernie Yaeger

"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...
> 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("me@kc.rr.com", "me***@kc.rr.com", "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
>
>
>
>
>
>



Nov 21 '05 #9
Hello,

Nope no office on this other than Frontpage.

I have decided to give up on CDO and go with a product from a 3rd party.

Thanks to everyone for the ideas and help.

Dan
"Nak" <a@a.com> wrote in message
news:uv**************@TK2MSFTNGP10.phx.gbl...
Hi there,

It seems like there is so much confusion on this CDO thing, I
personally managed to get it working by installed the CDO objects from the
Microsoft Office XP CD, maybe that is weird, but it worked for me, unless
of course all it done was to re-register the DLL that you are having
troubles with.

Do you have Office installed at all? Maybe this can cause an issue,
I'm no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr.com> wrote in message
news:uz**************@TK2MSFTNGP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening
either one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
Thanks for the info Bernie.

Even though I run VB.Net 2002 do you know should Visual Studio be 2003?

I have just re-installed framework 1.1 and that did not fix it. I
thought I read somewhere that you could have both 1.0 and 1.1 installed
but you must tell VB (or is it VS) which one to load. I don't know how
to do that if that is the case.

Do you think this has anything to do with the Web.Mail problem?
Because I have googled this and I have found some of the information
helpful. But nothing on point for this problem of the "Could not create
CDO.message".

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> Hi Dan,
>
> You have 2 problems: my about box shows clearly vs .net 2003 and
> framework 1.1. Don't know what you did wrong, but you might want to
> reinstall 1.1 and or vs into another drivespec.
>
> CDO again - it drives me crazy, and frankly MS has to work on this, as
> it can happen for too many reasons. I had a similar cdo problem and
> solved it by googling it. On Google there are dozens of articles that
> can be found on different possible reasons for this error.
>
> HTH,
>
> Bernie Yaeger
>
> "DanB" <ag*****@kc.rr.com> wrote in message
> news:OP**************@TK2MSFTNGP12.phx.gbl...
>> 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("me@kc.rr.com", "me***@kc.rr.com", "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
>>
>>
>>
>>
>>
>>
>
>



Nov 21 '05 #10
Nak
LOL, that's how most people get past this problem. Good luck with finding a
good 3rd party solution, if you find a nice free open source one written in
VB.NET let me know! :-)

Nick.

"DanB" <ag*****@kc.rr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello,

Nope no office on this other than Frontpage.

I have decided to give up on CDO and go with a product from a 3rd
party.

Thanks to everyone for the ideas and help.

Dan
"Nak" <a@a.com> wrote in message
news:uv**************@TK2MSFTNGP10.phx.gbl...
Hi there,

It seems like there is so much confusion on this CDO thing, I
personally managed to get it working by installed the CDO objects from
the Microsoft Office XP CD, maybe that is weird, but it worked for me,
unless of course all it done was to re-register the DLL that you are
having troubles with.

Do you have Office installed at all? Maybe this can cause an issue,
I'm no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr.com> wrote in message
news:uz**************@TK2MSFTNGP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening
either one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
> Thanks for the info Bernie.
>
> Even though I run VB.Net 2002 do you know should Visual Studio be
> 2003?
>
> I have just re-installed framework 1.1 and that did not fix it. I
> thought I read somewhere that you could have both 1.0 and 1.1
> installed but you must tell VB (or is it VS) which one to load. I
> don't know how to do that if that is the case.
>
> Do you think this has anything to do with the Web.Mail problem?
> Because I have googled this and I have found some of the information
> helpful. But nothing on point for this problem of the "Could not
> create CDO.message".
>
> "Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
> news:%2****************@TK2MSFTNGP12.phx.gbl...
>> Hi Dan,
>>
>> You have 2 problems: my about box shows clearly vs .net 2003 and
>> framework 1.1. Don't know what you did wrong, but you might want to
>> reinstall 1.1 and or vs into another drivespec.
>>
>> CDO again - it drives me crazy, and frankly MS has to work on this,
>> as it can happen for too many reasons. I had a similar cdo problem
>> and solved it by googling it. On Google there are dozens of articles
>> that can be found on different possible reasons for this error.
>>
>> HTH,
>>
>> Bernie Yaeger
>>
>> "DanB" <ag*****@kc.rr.com> wrote in message
>> news:OP**************@TK2MSFTNGP12.phx.gbl...
>>> 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("me@kc.rr.com", "me***@kc.rr.com", "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
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>



Nov 21 '05 #11
Hi Dan,

Before you give up, review what Jay Harlowe said - I think he is on the
right track re cdonts v. cdo.dll.

Bernie

"DanB" <ag*****@kc.rr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello,

Nope no office on this other than Frontpage.

I have decided to give up on CDO and go with a product from a 3rd
party.

Thanks to everyone for the ideas and help.

Dan
"Nak" <a@a.com> wrote in message
news:uv**************@TK2MSFTNGP10.phx.gbl...
Hi there,

It seems like there is so much confusion on this CDO thing, I
personally managed to get it working by installed the CDO objects from
the Microsoft Office XP CD, maybe that is weird, but it worked for me,
unless of course all it done was to re-register the DLL that you are
having troubles with.

Do you have Office installed at all? Maybe this can cause an issue,
I'm no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr.com> wrote in message
news:uz**************@TK2MSFTNGP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening
either one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
> Thanks for the info Bernie.
>
> Even though I run VB.Net 2002 do you know should Visual Studio be
> 2003?
>
> I have just re-installed framework 1.1 and that did not fix it. I
> thought I read somewhere that you could have both 1.0 and 1.1
> installed but you must tell VB (or is it VS) which one to load. I
> don't know how to do that if that is the case.
>
> Do you think this has anything to do with the Web.Mail problem?
> Because I have googled this and I have found some of the information
> helpful. But nothing on point for this problem of the "Could not
> create CDO.message".
>
> "Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
> news:%2****************@TK2MSFTNGP12.phx.gbl...
>> Hi Dan,
>>
>> You have 2 problems: my about box shows clearly vs .net 2003 and
>> framework 1.1. Don't know what you did wrong, but you might want to
>> reinstall 1.1 and or vs into another drivespec.
>>
>> CDO again - it drives me crazy, and frankly MS has to work on this,
>> as it can happen for too many reasons. I had a similar cdo problem
>> and solved it by googling it. On Google there are dozens of articles
>> that can be found on different possible reasons for this error.
>>
>> HTH,
>>
>> Bernie Yaeger
>>
>> "DanB" <ag*****@kc.rr.com> wrote in message
>> news:OP**************@TK2MSFTNGP12.phx.gbl...
>>> 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("me@kc.rr.com", "me***@kc.rr.com", "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
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>



Nov 21 '05 #12
Dan,
Did you follow all the suggests at http://www.systemwebmail.net/?

As far as I can tell that site is very complete in its handling of
System.Web.Mail!

Hope this helps
Jay
"DanB" <ag*****@kc.rr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello,

Nope no office on this other than Frontpage.

I have decided to give up on CDO and go with a product from a 3rd
party.

Thanks to everyone for the ideas and help.

Dan
"Nak" <a@a.com> wrote in message
news:uv**************@TK2MSFTNGP10.phx.gbl...
Hi there,

It seems like there is so much confusion on this CDO thing, I
personally managed to get it working by installed the CDO objects from
the Microsoft Office XP CD, maybe that is weird, but it worked for me,
unless of course all it done was to re-register the DLL that you are
having troubles with.

Do you have Office installed at all? Maybe this can cause an issue,
I'm no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr.com> wrote in message
news:uz**************@TK2MSFTNGP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening
either one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
> Thanks for the info Bernie.
>
> Even though I run VB.Net 2002 do you know should Visual Studio be
> 2003?
>
> I have just re-installed framework 1.1 and that did not fix it. I
> thought I read somewhere that you could have both 1.0 and 1.1
> installed but you must tell VB (or is it VS) which one to load. I
> don't know how to do that if that is the case.
>
> Do you think this has anything to do with the Web.Mail problem?
> Because I have googled this and I have found some of the information
> helpful. But nothing on point for this problem of the "Could not
> create CDO.message".
>
> "Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
> news:%2****************@TK2MSFTNGP12.phx.gbl...
>> Hi Dan,
>>
>> You have 2 problems: my about box shows clearly vs .net 2003 and
>> framework 1.1. Don't know what you did wrong, but you might want to
>> reinstall 1.1 and or vs into another drivespec.
>>
>> CDO again - it drives me crazy, and frankly MS has to work on this,
>> as it can happen for too many reasons. I had a similar cdo problem
>> and solved it by googling it. On Google there are dozens of articles
>> that can be found on different possible reasons for this error.
>>
>> HTH,
>>
>> Bernie Yaeger
>>
>> "DanB" <ag*****@kc.rr.com> wrote in message
>> news:OP**************@TK2MSFTNGP12.phx.gbl...
>>> 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("me@kc.rr.com", "me***@kc.rr.com", "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
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>



Nov 21 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James M. Luongo | last post by:
Hello, I am having problems with the mail() function, but I don't know what the problems are. Here is a snippet of code: $to = "jmluongo@comcast.net"; $from = "Gallery@gafok.com";...
3
by: Markus Weber | last post by:
Hi, we use htmlMimeMail-2.5.1 (http://www.phpguru.org/mime.mail.html) to send mails. If I send an e-mail with the subject "Das Öl - Öl Öl - Ö Ä Ü ß - test test" I will receive an e-mail with...
14
by: OldGuy | last post by:
Hi All Sendmail 8.12.11 php 4.3.9 Sendmail is installed and works properly. php is NOT in safemode from the command line; mail user@domain.com < testmsg works fine.
1
by: Irmen de Jong | last post by:
Hi I'm trying to create e-mail content using the email.MIMEText module. It basically works, until I tried to send mail in non-ascii format. What I did, to test both iso-8859-15 and UTF-8...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
6
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario,...
1
by: mayanksrmcem | last post by:
I need ur help. I want to send emails through php code. but there are some problems n i'm not able to understand the actual problems. the code , i've used is as followes---- <?php if...
5
by: Dave | last post by:
Hi All, I'm experiencing problems with sending mail using mail() to forwarded email accounts. The problem seems to revolve around the optional 4th argument of mail(), namely 'additional headers'....
3
by: shror | last post by:
I was testing to post a form and echo message according to the submitted box using else if and then mail() the box result to myself just for testing the procedure but i got some problems: 1# the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.