| 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] |