Click here to Skip to main content
14,453,349 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have created an email application.
Error Message: The remote certificate is invalid according to the validation procedure. how solve this problem.

C# Code
    mailMsg.To.Add(txtemailid.Text.Trim());
     mailMsg.Subject = "Registration Successfull";
     mailMsg.Body = "Yours Registration Successfull";
     mailMsg.IsBodyHtml = true;
mailMsg.From = new  MailAddress(mailsetting.Smtp.From.ToString().Trim());
     smtpClient.Host = mailsetting.Smtp.Network.Host.ToString().Trim();
     smtpClient.EnableSsl = true;
     smtpClient.Send(mailMsg);


webconfig File
<mailsettings>
      <smtp from="xxx@gmail.com" deliverymethod="Network">
        <network host="smtp.gmail.com" port="587" />
      </smtp>
    </mailsettings>
Posted
Updated 18-Aug-11 1:28am
v3

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I have no freaking idea, but I can google and find out, ain't gonna do that as it ain't my problem. I will however give you a google search[^] with alot of results..
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100