Connecting Tech Pros Worldwide Forums | Help | Site Map

Can not use 'CDO' any long?

jeff
Guest
 
Posts: n/a
#1: Nov 17 '05
Hi,

I don't know why, when I use MailMessage to send email I get a error "Could
not create 'CDO.Message' object". But it used to work. What I can recall is
I installed Win2K Sp4 and terminal server. The code I used to send the email
follows:

MailMessage Message = new MailMessage();
Message.BodyEncoding = System.Text.Encoding.UTF8;
Message.To = tbEmail.Text;
Message.From = "jone_123@hotmail.com";
Message.Subject = "Thanks";
Message.Body = "test";
SmtpMail.Send(Message);

And I tried to register the cdosys.dll again but get the error
"DllRegisterServer in cdosys.dll failed. Return code was: 0x800704da".

I also tried to set the mailroot folder's security to allow ASPNET user
read/write, still no luck.

Anyone can help ?

Thanks in advance

Jeff



Showjumper
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Can not use 'CDO' any long?


you are missing the
smtpmail.SmtpServer = "" or whatever you mail server is

"jeff" <bloodchen@hotmail.com> wrote in message
news:uYeXcaXVDHA.2164@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> I don't know why, when I use MailMessage to send email I get a error[/color]
"Could[color=blue]
> not create 'CDO.Message' object". But it used to work. What I can recall[/color]
is[color=blue]
> I installed Win2K Sp4 and terminal server. The code I used to send the[/color]
email[color=blue]
> follows:
>
> MailMessage Message = new MailMessage();
> Message.BodyEncoding = System.Text.Encoding.UTF8;
> Message.To = tbEmail.Text;
> Message.From = "jone_123@hotmail.com";
> Message.Subject = "Thanks";
> Message.Body = "test";
> SmtpMail.Send(Message);
>
> And I tried to register the cdosys.dll again but get the error
> "DllRegisterServer in cdosys.dll failed. Return code was: 0x800704da".
>
> I also tried to set the mailroot folder's security to allow ASPNET user
> read/write, still no luck.
>
> Anyone can help ?
>
> Thanks in advance
>
> Jeff
>
>[/color]


jeff
Guest
 
Posts: n/a
#3: Nov 17 '05

re: Can not use 'CDO' any long?


Thanks. But set smtpmail.SmtpServer = "" or "localhost" does not help.
And the code works somedays before.

"Showjumper" <shojumper@grkjashdjkf.com> wrote in message
news:uz9yBkXVDHA.2016@TK2MSFTNGP09.phx.gbl...[color=blue]
> you are missing the
> smtpmail.SmtpServer = "" or whatever you mail server is
>
> "jeff" <bloodchen@hotmail.com> wrote in message
> news:uYeXcaXVDHA.2164@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I don't know why, when I use MailMessage to send email I get a error[/color]
> "Could[color=green]
> > not create 'CDO.Message' object". But it used to work. What I can recall[/color]
> is[color=green]
> > I installed Win2K Sp4 and terminal server. The code I used to send the[/color]
> email[color=green]
> > follows:
> >
> > MailMessage Message = new MailMessage();
> > Message.BodyEncoding = System.Text.Encoding.UTF8;
> > Message.To = tbEmail.Text;
> > Message.From = "jone_123@hotmail.com";
> > Message.Subject = "Thanks";
> > Message.Body = "test";
> > SmtpMail.Send(Message);
> >
> > And I tried to register the cdosys.dll again but get the error
> > "DllRegisterServer in cdosys.dll failed. Return code was: 0x800704da".
> >
> > I also tried to set the mailroot folder's security to allow ASPNET user
> > read/write, still no luck.
> >
> > Anyone can help ?
> >
> > Thanks in advance
> >
> > Jeff
> >
> >[/color]
>
>[/color]


Showjumper
Guest
 
Posts: n/a
#4: Nov 17 '05

re: Can not use 'CDO' any long?


Can you test it on another server to see if it works there? Maybe something
to do w/ SP4...
"jeff" <bloodchen@hotmail.com> wrote in message
news:%235ZBO5XVDHA.624@TK2MSFTNGP10.phx.gbl...[color=blue]
> Thanks. But set smtpmail.SmtpServer = "" or "localhost" does not help.
> And the code works somedays before.
>
> "Showjumper" <shojumper@grkjashdjkf.com> wrote in message
> news:uz9yBkXVDHA.2016@TK2MSFTNGP09.phx.gbl...[color=green]
> > you are missing the
> > smtpmail.SmtpServer = "" or whatever you mail server is
> >
> > "jeff" <bloodchen@hotmail.com> wrote in message
> > news:uYeXcaXVDHA.2164@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I don't know why, when I use MailMessage to send email I get a error[/color]
> > "Could[color=darkred]
> > > not create 'CDO.Message' object". But it used to work. What I can[/color][/color][/color]
recall[color=blue][color=green]
> > is[color=darkred]
> > > I installed Win2K Sp4 and terminal server. The code I used to send the[/color]
> > email[color=darkred]
> > > follows:
> > >
> > > MailMessage Message = new MailMessage();
> > > Message.BodyEncoding = System.Text.Encoding.UTF8;
> > > Message.To = tbEmail.Text;
> > > Message.From = "jone_123@hotmail.com";
> > > Message.Subject = "Thanks";
> > > Message.Body = "test";
> > > SmtpMail.Send(Message);
> > >
> > > And I tried to register the cdosys.dll again but get the error
> > > "DllRegisterServer in cdosys.dll failed. Return code was: 0x800704da".
> > >
> > > I also tried to set the mailroot folder's security to allow ASPNET[/color][/color][/color]
user[color=blue][color=green][color=darkred]
> > > read/write, still no luck.
> > >
> > > Anyone can help ?
> > >
> > > Thanks in advance
> > >
> > > Jeff
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread