Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

error while using SmtpMail to send a simple html formatted message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DotNetJunkie - 26 Jul 2007 20:46 GMT
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
sloan - 26 Jul 2007 21:41 GMT
I have complete sample code at:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry

including sending html emails.

> Hi,
> I am trying to send an email using System.Web.Mail.SmtpMail. I am getting
[quoted text clipped - 15 lines]
>
> -DotNetJunkie
DotNetJunkie - 27 Jul 2007 13:10 GMT
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.

> I have complete sample code at:
> http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry
[quoted text clipped - 20 lines]
> >
> > -DotNetJunkie
Kevin Spencer - 27 Jul 2007 12:14 GMT
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/

Signature

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

> Hi,
> I am trying to send an email using System.Web.Mail.SmtpMail. I am getting
[quoted text clipped - 15 lines]
>
> -DotNetJunkie
DotNetJunkie - 27 Jul 2007 13:10 GMT
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.

> 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
[quoted text clipped - 19 lines]
> >
> > -DotNetJunkie
sloan - 27 Jul 2007 15:14 GMT
That's why I mentioned my sample.

I have both 1.1 and 2.0 versions.

>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.
[quoted text clipped - 27 lines]
>> >
>> > -DotNetJunkie
Kevin Spencer - 30 Jul 2007 11:51 GMT
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.

Signature

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

>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.
[quoted text clipped - 27 lines]
>> >
>> > -DotNetJunkie

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.