using System; using System.Net.Mail; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Net.Security; namespace smtp_test { class Program { static void Main(string[] args) { ServicePointManager.ServerCertificateValidationCallback = delegate ( object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) { return true; }; try { SmtpClient cl = new SmtpClient("gekkoin.com", 25); MailAddress from = new MailAddress("reports@gekkoin.com"); MailAddress to = new MailAddress("reports@gekkoin.com"); MailMessage msg = new MailMessage(from, to); msg.Body = "test"; cl.Credentials = new NetworkCredential("Gekkoin", "xK201ipD9OH3qmDro8O3xdm"); cl.EnableSsl = true; cl.Send(msg); msg.Dispose(); } catch (Exception ex) { Console.WriteLine(ex); } } } }