security exception in windows 7
Hi,
I have a website which is uploaded on to daily.co.uk. It is working fine but when i am sending mail via SMTP so it is not going. I found from net that daily.co.uk support CDO smtp so i coded for this, But it gives security exception so i wrote in my web.config file. The web is working fine in XP but on working in windows 7 it gives Exception in web.config file that it is not support. So please help me out. what kind of setting i have to do in web.config so my web work fine in all windows and server also.
Thanks in advance.
raksha nirwanPosted Apr 28, 2011, 12:02 PM
Sam HobbsPosted Apr 27, 2011, 3:06 PM
I don't know what you are using. There are many types of CDO. I tried to figure out what references to use but I cannot. I am not sure if you are using a managed version of CDO. I am not sure if there is a managed version of CDO except System.Web.Mail uses CDO.
Have you tried using System.Web.Mail?
raksha nirwanPosted Apr 27, 2011, 1:33 PM
I used this code for smtp mail on daily.co.uk.
using CDO;
using ADODB;
Message MyMessage = new MessageClass();
CDO.Configuration MyConfig = MyMessage.Configuration;
Fields MyFields = MyConfig.Fields;
MyFields[@"http://schemas.
MyFields[@"http://schemas.
MyFields[@"http://schemas.
MyFields.Update();
MyMessage.Configuration = MyConfig;
MyMessage.TextBody = txtmsg.Value;
MyMessage.Subject = title;
MyMessage.From = mailId;
MyMessage.To = str;
MyMessage.Send();
when i clicked on to submit button , after some time it shows an exception , attached with this post. Please find.
Sam HobbsPosted Apr 26, 2011, 6:04 PM
Suthish NairPosted Apr 26, 2011, 7:26 AM