private void SendMail(Email email) { _mailman.SmtpHost = @"exchange.santeecooper.com"; _mailman.SmtpUsername = "******"; _mailman.SmtpPassword = Encryption.Decrypt(_docConfig.EmailNotificationPassword, "s@1tValue", "Pas5pr@se"); _mailman.SmtpPort = int.Parse(_docConfig.SmtpPort); _mailman.StartTLS = bool.Parse(_docConfig.StartTls); _mailman.SmtpSsl = bool.Parse(_docConfig.Ssl); _mailman.AutoFix = bool.Parse(_docConfig.AutoFix); if (_mailman.SendEmail(email) != true) { throw new Exception(_mailman.LastErrorText); } if (_mailman.CloseSmtpConnection() != true) { throw new Exception(_mailman.LastErrorText); } }