Lately, I had faced an error while sending email:
The remote certificate is invalid according to the validation procedure using
and I found a solution to this here which works perfectly but don't know what actually it does. So, can anyone explain me what the below code actually does? and why is the code referred as a hack?
Code:
ServicePointManager.ServerCertificateValidationCallback =
delegate(object s, X509Certificate certificate,
X509Chain chain, SslPolicyErrors sslPolicyErrors)
{ return true; };