Example #1
0
        public void AddEmailException(EmailException objEmailException)
        {

            _context.EmailExceptions.Add(objEmailException);
            _context.SaveChanges();

        }
Example #2
0
        public void Show()
        {
            var frm = new frmException
            {
                lblError = { Text = exception.Message },
                rtbStack = { Text = exception.StackTrace }
            };

            if (frm.ShowDialog() == DialogResult.OK)
            {
                var    email      = new EmailException();
                string strAddress = frm.txtEmail.Text.Trim();
                if (!System.Text.RegularExpressions.Regex.IsMatch(strAddress.ToUpper(), @"^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"))
                {
                    strAddress = "";
                }
                email.SendMail(exception, strAddress, frm.txtComments.Text, frm.chkCopy.Checked, false);
            }
        }
Example #3
0
 public string Send(string toAddress, string message, string source, EmailException emailException)
 {
     //TODO :send it as sms
        return Status = "send successfully as sms";
 }