Example #1
0
        private void MailView_Click(object sender, RoutedEventArgs e)
        {
            AddMail ViewNextForm = new AddMail();

            Frame.Content = ViewNextForm;
            Frame.NavigationService.RemoveBackEntry();
        }
Example #2
0
        private void btnSendMail_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                MailBody mailModel = new MailBody();
                mailModel.MailTo = new List <string>();
                mailModel.MailTo.Add(txtMailTo.Text);
                mailModel.Subject    = txtMailSubject.Text;
                mailModel.Body       = txtMailBody.Text;
                mailModel.IsAsync    = false;
                mailModel.IsHtmlBody = true;
                AddMail a = new AddMail();
                a.Send(mailModel, new MailSettings("", "", "", "", "", "", true));
                MessageBox.Show("ok");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            // _sendMail.Send(mailModel);
        }