public SMTPSetting() { try { SMTPSetting sMTPSetting = DBCache.GetSMTPSetting(); if (sMTPSetting != null) { this.smtp_enable = sMTPSetting.Status; this.smtp_server = sMTPSetting.ServerIP; this.smtp_port = sMTPSetting.Port; this.smtp_from = sMTPSetting.Sender; this.smtp_to = sMTPSetting.Receiver; this.smtp_event = sMTPSetting.EVENT; this.smtp_auth = sMTPSetting.AuthenticationFlag; this.smtp_account = sMTPSetting.AccountName; this.smtp_pwd = sMTPSetting.AccountPwd; } else { this.smtp_enable = 0; this.smtp_server = ""; this.smtp_port = 25; this.smtp_from = ""; this.smtp_to = ""; this.smtp_event = ""; this.smtp_auth = 0; this.smtp_account = ""; this.smtp_pwd = ""; } } catch (Exception ex) { DebugCenter.GetInstance().appendToFile("DBERROR~~~~~~~~~~~DBERROR : " + ex.Message + "\n" + ex.StackTrace); } }