|
|
|
start date: Thu, 26 Jul 2007 12:46:04 -0700,
posted on: microsoft.public.dotnet.framework
back
| Thread Index |
|
1
DotNetJunkie
|
|
2
sloan
|
|
3
DotNetJunkie
|
|
4
Kevin Spencer
|
|
5
DotNetJunkie
|
|
6
sloan
|
|
7
Kevin Spencer
|
error while using SmtpMail to send a simple html formatted message
Hi,
I am trying to send an email using System.Web.Mail.SmtpMail. I am getting
error: "Could not accessCDO.Message object"
It was a HTML formatted message, if I try to use Text BodyFormat it sent the
mail successfully. But my need is to send a HTML formatted message.
So I tried to unregister the CDOSys.dll -- successful
then I tried to register it back and got the error - "DllRegisterServer in
cdosys.dll failed. Return code was: 0x800704da"
Now while trying to send mail using SmtpMail I am getting error: "Could not
create CDO.Message object"
Now I can't send Html or Text BodyFormat messages.
Have someone encountered this problem before?
-DotNetJunkie
Date:Thu, 26 Jul 2007 12:46:04 -0700
Author:
|
Re: error while using SmtpMail to send a simple html formatted message
I have complete sample code at:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry
including sending html emails.
"DotNetJunkie" wrote in message
news:B2AB6439-76DA-434A-A71A-440AA117DFB6@microsoft.com...
> Hi,
> I am trying to send an email using System.Web.Mail.SmtpMail. I am getting
> error: "Could not accessCDO.Message object"
> It was a HTML formatted message, if I try to use Text BodyFormat it sent
> the
> mail successfully. But my need is to send a HTML formatted message.
>
> So I tried to unregister the CDOSys.dll -- successful
> then I tried to register it back and got the error - "DllRegisterServer in
> cdosys.dll failed. Return code was: 0x800704da"
> Now while trying to send mail using SmtpMail I am getting error: "Could
> not
> create CDO.Message object"
>
> Now I can't send Html or Text BodyFormat messages.
>
> Have someone encountered this problem before?
>
> -DotNetJunkie
Date:Thu, 26 Jul 2007 16:41:11 -0400
Author:
|
Re: error while using SmtpMail to send a simple html formatted message
Don't use the System.Web.Mail.SmtpMail and associated classes. They are
deprecated. Use the System.Net.Mail classes. Check out the following web
site: http://www.systemnetmail.com/
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"DotNetJunkie" wrote in message
news:B2AB6439-76DA-434A-A71A-440AA117DFB6@microsoft.com...
> Hi,
> I am trying to send an email using System.Web.Mail.SmtpMail. I am getting
> error: "Could not accessCDO.Message object"
> It was a HTML formatted message, if I try to use Text BodyFormat it sent
> the
> mail successfully. But my need is to send a HTML formatted message.
>
> So I tried to unregister the CDOSys.dll -- successful
> then I tried to register it back and got the error - "DllRegisterServer in
> cdosys.dll failed. Return code was: 0x800704da"
> Now while trying to send mail using SmtpMail I am getting error: "Could
> not
> create CDO.Message object"
>
> Now I can't send Html or Text BodyFormat messages.
>
> Have someone encountered this problem before?
>
> -DotNetJunkie
Date:Fri, 27 Jul 2007 07:14:13 -0400
Author:
|
Re: error while using SmtpMail to send a simple html formatted mes
I can't use System.Net.Mail classes as project is on Framework 1.1. And the
problem is that same code is working on all other machines except one. Thats
why I was trying to work on the dlls of the machine.
"Kevin Spencer" wrote:
> Don't use the System.Web.Mail.SmtpMail and associated classes. They are
> deprecated. Use the System.Net.Mail classes. Check out the following web
> site: http://www.systemnetmail.com/
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
>
> Printing Components, Email Components,
> FTP Client Classes, Enhanced Data Controls, much more.
> DSI PrintManager, Miradyne Component Libraries:
> http://www.miradyne.net
>
>
> "DotNetJunkie" wrote in message
> news:B2AB6439-76DA-434A-A71A-440AA117DFB6@microsoft.com...
> > Hi,
> > I am trying to send an email using System.Web.Mail.SmtpMail. I am getting
> > error: "Could not accessCDO.Message object"
> > It was a HTML formatted message, if I try to use Text BodyFormat it sent
> > the
> > mail successfully. But my need is to send a HTML formatted message.
> >
> > So I tried to unregister the CDOSys.dll -- successful
> > then I tried to register it back and got the error - "DllRegisterServer in
> > cdosys.dll failed. Return code was: 0x800704da"
> > Now while trying to send mail using SmtpMail I am getting error: "Could
> > not
> > create CDO.Message object"
> >
> > Now I can't send Html or Text BodyFormat messages.
> >
> > Have someone encountered this problem before?
> >
> > -DotNetJunkie
>
>
>
Date:Fri, 27 Jul 2007 05:10:00 -0700
Author:
|
Re: error while using SmtpMail to send a simple html formatted mes
BEfore trying the sample code I would like to mention that mine code is
working on all machines except one. That is the reason I am playing with
dlls.
"sloan" wrote:
> I have complete sample code at:
> http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry
>
> including sending html emails.
>
>
>
> "DotNetJunkie" wrote in message
> news:B2AB6439-76DA-434A-A71A-440AA117DFB6@microsoft.com...
> > Hi,
> > I am trying to send an email using System.Web.Mail.SmtpMail. I am getting
> > error: "Could not accessCDO.Message object"
> > It was a HTML formatted message, if I try to use Text BodyFormat it sent
> > the
> > mail successfully. But my need is to send a HTML formatted message.
> >
> > So I tried to unregister the CDOSys.dll -- successful
> > then I tried to register it back and got the error - "DllRegisterServer in
> > cdosys.dll failed. Return code was: 0x800704da"
> > Now while trying to send mail using SmtpMail I am getting error: "Could
> > not
> > create CDO.Message object"
> >
> > Now I can't send Html or Text BodyFormat messages.
> >
> > Have someone encountered this problem before?
> >
> > -DotNetJunkie
>
>
>
Date:Fri, 27 Jul 2007 05:10:04 -0700
Author:
|
Re: error while using SmtpMail to send a simple html formatted mes
That's why I mentioned my sample.
I have both 1.1 and 2.0 versions.
"DotNetJunkie" wrote in message
news:0B5D959A-ED04-4316-A36A-BD19163D1471@microsoft.com...
>I can't use System.Net.Mail classes as project is on Framework 1.1. And the
> problem is that same code is working on all other machines except one.
> Thats
> why I was trying to work on the dlls of the machine.
>
> "Kevin Spencer" wrote:
>
>> Don't use the System.Web.Mail.SmtpMail and associated classes. They are
>> deprecated. Use the System.Net.Mail classes. Check out the following web
>> site: http://www.systemnetmail.com/
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>>
>> Printing Components, Email Components,
>> FTP Client Classes, Enhanced Data Controls, much more.
>> DSI PrintManager, Miradyne Component Libraries:
>> http://www.miradyne.net
>>
>>
>> "DotNetJunkie" wrote in message
>> news:B2AB6439-76DA-434A-A71A-440AA117DFB6@microsoft.com...
>> > Hi,
>> > I am trying to send an email using System.Web.Mail.SmtpMail. I am
>> > getting
>> > error: "Could not accessCDO.Message object"
>> > It was a HTML formatted message, if I try to use Text BodyFormat it
>> > sent
>> > the
>> > mail successfully. But my need is to send a HTML formatted message.
>> >
>> > So I tried to unregister the CDOSys.dll -- successful
>> > then I tried to register it back and got the error - "DllRegisterServer
>> > in
>> > cdosys.dll failed. Return code was: 0x800704da"
>> > Now while trying to send mail using SmtpMail I am getting error: "Could
>> > not
>> > create CDO.Message object"
>> >
>> > Now I can't send Html or Text BodyFormat messages.
>> >
>> > Have someone encountered this problem before?
>> >
>> > -DotNetJunkie
>>
>>
>>
Date:Fri, 27 Jul 2007 10:14:45 -0400
Author:
|
Re: error while using SmtpMail to send a simple html formatted mes
You may want to be sure that CDOSYS is installed and configured properly on
the machine in question. It sounds like it is not. The nice thing about
System.Net.Mail is that there is no dependency on such as COM object in the
managed software.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"DotNetJunkie" wrote in message
news:0B5D959A-ED04-4316-A36A-BD19163D1471@microsoft.com...
>I can't use System.Net.Mail classes as project is on Framework 1.1. And the
> problem is that same code is working on all other machines except one.
> Thats
> why I was trying to work on the dlls of the machine.
>
> "Kevin Spencer" wrote:
>
>> Don't use the System.Web.Mail.SmtpMail and associated classes. They are
>> deprecated. Use the System.Net.Mail classes. Check out the following web
>> site: http://www.systemnetmail.com/
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>>
>> Printing Components, Email Components,
>> FTP Client Classes, Enhanced Data Controls, much more.
>> DSI PrintManager, Miradyne Component Libraries:
>> http://www.miradyne.net
>>
>>
>> "DotNetJunkie" wrote in message
>> news:B2AB6439-76DA-434A-A71A-440AA117DFB6@microsoft.com...
>> > Hi,
>> > I am trying to send an email using System.Web.Mail.SmtpMail. I am
>> > getting
>> > error: "Could not accessCDO.Message object"
>> > It was a HTML formatted message, if I try to use Text BodyFormat it
>> > sent
>> > the
>> > mail successfully. But my need is to send a HTML formatted message.
>> >
>> > So I tried to unregister the CDOSys.dll -- successful
>> > then I tried to register it back and got the error - "DllRegisterServer
>> > in
>> > cdosys.dll failed. Return code was: 0x800704da"
>> > Now while trying to send mail using SmtpMail I am getting error: "Could
>> > not
>> > create CDO.Message object"
>> >
>> > Now I can't send Html or Text BodyFormat messages.
>> >
>> > Have someone encountered this problem before?
>> >
>> > -DotNetJunkie
>>
>>
>>
Date:Mon, 30 Jul 2007 06:51:15 -0400
Author:
|
|
|