public MailStore(Secrets secrets) { ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true; var config = new SimolConfig { AutoCreateDomains = true, Cache = null, ReadConsistency = ConsistencyBehavior.Immediate }; simolClient = new SimolClient(secrets.Username, secrets.Password, config); }
public static void SaveTo(string filename, Secrets secrets) { using (var streamWriter = new StreamWriter(filename, false, Encoding.UTF8)) { streamWriter.WriteLine(secrets.Username); streamWriter.WriteLine(secrets.Password); } }