public HandleSendEmailWithResults(IBusAdapter bus, IMailMessageService mailMessageService, IMailSender mailSender, IAppSettings appSettings)
 {
     _bus = bus;
     _mailMessageService = mailMessageService;
     _mailSender         = mailSender;
     _appSettings        = appSettings;
 }
예제 #2
0
 public HandleSendEmailConfirmingUpload(IBusAdapter bus, IMailMessageService mailMessageService, IMailSender mailSender, IAppSettings appSettings)
 {
     _bus = bus;
     _mailMessageService = mailMessageService;
     _mailSender         = mailSender;
     _appSettings        = appSettings;
 }
예제 #3
0
 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);
 }
예제 #4
0
 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;
 }
예제 #5
0
        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);
                }
            }
        }
예제 #6
0
 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;
 }