Remote Certificate invalid according to the Validation Procedure.

  1. using System.Net;  
  2. using System.Security.Cryptography.X509Certificates;  
  3. using System.Net.Security;  
  4.   
  5. put the below code somewhere before smtpclient.Send()  
  6.   
  7. ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate,  
  8. X509Chain chain, SslPolicyErrors sslPolicyErrors)   
  9. {  
  10.     return true;  
  11. };