asp.net:
The Smtp.mail object is kind of a wrapper for the code that does the actual
talking to the SMTP server. Without some mechanism to talk to the SMTP
server correctly you can't send email. If the Collaboration Data Objects
(CDO) aren't installed on the server then there are still alternatives (free
ones too). If your host doesn't have CDO installed find out if they have
another object instead. It could be your host has disabled CDO, but has
installed a better component that you can use. I ran a quick query at
411asp.net and found some free .net components for sending mail. Check out
http://www.411asp.net/func/search?qry=smtp&cat=pr Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
[quoted text, click to view] "David Cho" <nospam@nospam.nospam.com> wrote in message
news:Ds2Jb.37496$Vs3.18848@twister.socal.rr.com...
> My code below gives me an error message that says "Error loading type
> library/DLL error"
>
> I've looked around and some postings state that my ISP needs to have "CDO
> service" running. Why isn't just using a STMP server enough? And there
> seem to be some third party controls that I need to buy in order to have
my
> ASP.NET page send emails.
>
> Could somebody post a simple solution that does not involve a third party
> product? If this "CDO service" is the only option, could you post a
simple
> tutorial on how to set that up?
>
> My development enviroment is XP, but the production server is 2000.
>
> //my code below
>
> MailMessage msg = new MailMessage();
>
> msg.To = "profnachos@yahoo.com";
>
> msg.Subject = "test";
>
> SmtpMail.SmtpServer = "smtp-server.socal.rr.com";
>
> SmtpMail.Send(msg);
>
>
>