Example #1
0
        public void SendMessage(IQueryable <Emails> emails, Smtp selectedSmtp)
        {
            if (IsFillError())
            {
                return;
            }
            AuthorizationWindow authWindow = new AuthorizationWindow();

            if (authWindow.ShowDialog() == true)
            {
                _sendService = new EmailSendServiceClass(selectedSmtp, authWindow.authSettings, mailSettings);
                _sendService.SendMails(emails);
            }
        }
Example #2
0
 public EmailSendServiceClass(Smtp smtp, AuthSettings auth, MailSettings mail)
 {
     _smtp = smtp;
     _auth = auth;
     _mail = mail;
 }
Example #3
0
 partial void UpdateSmtp(Smtp instance);
Example #4
0
 partial void DeleteSmtp(Smtp instance);
Example #5
0
 partial void InsertSmtp(Smtp instance);