Detected 1 occurrence(s) of ‘default\s*credentials’: SmtpClient oSmtpClient = new SmtpClient(); oSmtpClient.Port = oSmtpSection.Network.Port; oSmtpClient.EnableSsl = bool.Parse(oSmtpSection.Network.EnableSsl.ToString()); oSmtpClient.UseDefaultCredentials = true; oSmtpClient.Host = oSmtpSection.Network.Host; oSmtpClient.Credentials = new NetworkCredential(oSmtpSection.Network.UserName, oSmtpSection.Network.Password); //Add this line to bypass the certificate validation Syst Source: http://pastebin.com/raw.php?i=1n1GzgUg
↧