public int saveMailconfig(mailconfig config) { int configID = 0; SqlCommand cmd = new SqlCommand(); try { } catch (Exception ex) { throw new Exception("Error occurred:" + ex.Message); } finally { cmd.Connection.Close(); } return(configID); }
public void notify(String subject, String message) { mailconfig mail_conf = new mailconfig(); mail_conf.sendMail(subject, message, "*****@*****.**"); }