public static void SendExceptionInfoEmail(string ErrorMsg) { bool sendmailflag = Convert.ToBoolean(ConfigurationManager.AppSettings["SendMailFlag"]); if (sendmailflag == true) { GroupBuyingDA.SendMailAboutExceptionInfo(ErrorMsg); } }