Error: Server does not support secure connections
问题 Ok, I have been using the following script for over a year now to send email (via gmail) from my host, and it has worked just fine (the Settings.Get() just return strings): public class Email : SmtpClient { public MailMessage Message { get; private set; } public Email(string to, string from, string subject, string body) : base(Settings.Get("smtp"), 25) { this.EnableSsl = Convert.ToBoolean(Settings.Get("ssl")); if(this.EnableSsl) this.Credentials = new System.Net.NetworkCredential(Settings.Get