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); } }
public EmailSendServiceClass(Smtp smtp, AuthSettings auth, MailSettings mail) { _smtp = smtp; _auth = auth; _mail = mail; }
partial void UpdateSmtp(Smtp instance);
partial void DeleteSmtp(Smtp instance);
partial void InsertSmtp(Smtp instance);