Example #1
0
        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);
        }
Example #2
0
        public void notify(String subject, String message)
        {
            mailconfig mail_conf = new mailconfig();

            mail_conf.sendMail(subject, message, "*****@*****.**");
        }