Sending Mails Through Exchange server
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();

