public HandleSendEmailWithResults(IBusAdapter bus, IMailMessageService mailMessageService, IMailSender mailSender, IAppSettings appSettings) { _bus = bus; _mailMessageService = mailMessageService; _mailSender = mailSender; _appSettings = appSettings; }
public HandleSendEmailConfirmingUpload(IBusAdapter bus, IMailMessageService mailMessageService, IMailSender mailSender, IAppSettings appSettings) { _bus = bus; _mailMessageService = mailMessageService; _mailSender = mailSender; _appSettings = appSettings; }
public MailContactOverviewViewModel(IUnitOfWork unitOfWork, IEventAggregator eventAggregator, ICryptographyService cryptographyService, IMailMessageService mailMessageService, IMailContactService mailContactService) : base(unitOfWork, eventAggregator) { _cryptographyService = cryptographyService; _mailMessageService = mailMessageService; _mailContactService = mailContactService; RefreshCommand = new DelegateCommand <object, object>(OnRefresh); }
public CustomerOrder(IOrderFormService formService, ICustomerOrderService customerOrderService, ISupplierService supplierService, IMailMessageService mailMessageService, IFileStore fileStore, IMailAttachmentService mailAttachmentService, ICustomerCaseService customerCaseService) { _fileStore = fileStore; _supplierService = supplierService; _mailMessageService = mailMessageService; _customerOrderService = customerOrderService; _mailAttachmentService = mailAttachmentService; _customerCaseService = customerCaseService; _formService = formService; }
public static async Task xSendAsync(this IMailMessageService service, string to, string subject, string message) { var emailMessage = new MailMessage(); emailMessage.To.Add(to); emailMessage.Subject = subject; emailMessage.From = service.FromMailAddress; emailMessage.Body = message; emailMessage.IsBodyHtml = true; using (var client = new SmtpClient()) { try { await client.SendMailAsync(emailMessage); //} catch (InvalidApiRequestException ex) { // System.Diagnostics.Debug.WriteLine(ex.Errors.ToList().Aggregate((allErrors, error) => allErrors += ", " + error)); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } } }
private Facade() { this.iAuthenticationService = ContainerBuilder.Resolve <IAuthenticationService>(); this.iMailAccountService = ContainerBuilder.Resolve <IMailAccountService>(); this.iMailMessageService = ContainerBuilder.Resolve <IMailMessageService>(); }
public CoordinatorMailMessagesController(IMailMessageService mailMessageService, IMapper mapper) { _mailMessageService = mailMessageService; _mapper = mapper; }