Sending Mails Through Exchange server

Hi,

I have written the following Asp.net program to send mails directly through Exchange Server (2000) (without using the Microsoft Outlook) But for some reason the mails i send through this get stuck in the mailroot/queue folder of the IIS virtual folder.

If anyone can tell me what is wrong with my program or suggest a better way of sending the mails through the Exchange server ( Without using Outlook) it would be greatly appreciated.

Thanks a million in advance.

CDO.Message msg = new CDO.MessageClass();
CDO.Configuration conn = new CDO.ConfigurationClass();
CDO.CdoConfigSource ccc = new CDO.CdoConfigSource();

conn.Fields.Update();
msg.Configuration = conn;
msg.To ="madoo@yahoo.com";
msg.From ="saranga@yahoo.com";
msg.Subject =" Test";
msg.TextBody ="Testing Mails";
msg.BCC ="";
msg.Send();
[890 byte] By [saranga] at [2007-11-18 19:16:20]
# 1 Re: Sending Mails Through Exchange server
I think you may have to specify the server name.
wey97 at 2007-11-9 11:44:21 >