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.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;

webconfig File
      <smtp from="" deliverymethod="Network">
        <network host="" port="587" />
Updated 18-Aug-11 1:28am

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..

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