ServicePointManager.ServerCertificateValidationCallback =
delegate(object s,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors) { return true; };
// write smtp client's .send here
Once you do this, you will see the error disappears!
thanks .. it works for me.
ReplyDelete