Exemple #1
0
 public EmailService(
     ISmtpSettings settings,
     ILayoutDataService layoutDataService,
     ILogger <EmailService> logger)
 {
     _settings          = settings;
     _layoutDataService = layoutDataService;
     _logger            = logger;
 }
        public SmtpService(ISmtpSettings smtpSettings)
        {
            _smtpClient = new SmtpClient(smtpSettings.Host, smtpSettings.Port)
            {
                Credentials = new NetworkCredential(smtpSettings.Username, smtpSettings.Password),
                EnableSsl   = smtpSettings.Ssl
            };

            _fromAddress = new MailAddress(smtpSettings.Username, smtpSettings.Username);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductMailObserver"/> class.
 /// </summary>
 /// <param name="settings">The <see cref="ISmtpSettings"/> dependency.</param>
 public ProductMailObserver(ISmtpSettings settings)
 {
     this.mailConfiguration = settings;
     this.smtpClient        = this.InitializeSmtpClient(
         settings.Host,
         settings.Port,
         settings.UserName,
         settings.Password,
         settings.UseDefaultCredentials,
         settings.UseSsl,
         settings.From);
 }
 public MimeKitEmailSender(ISmtpSettings settings, IEmailSettings emailSettings)
 {
     _settings      = settings;
     _emailSettings = emailSettings;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ObserverManager"/> class.
 /// It creates the observer.
 /// </summary>
 /// <param name="settings">The <see cref="ISmtpSettings"/> dependency.</param>
 public ObserverManager(ISmtpSettings settings)
 {
     this.productMailObserver = new ProductMailObserver(settings);
 }
Exemple #6
0
 public SheshaEmailSender(ISmtpEmailSenderConfiguration configuration, ISmtpSettings smtpSettings, IEmailImagesHelper imagesHelper) : base(configuration)
 {
     _smtpSettings = smtpSettings;
     _imagesHelper = imagesHelper;
 }
Exemple #7
0
 public SmtpSettingsService(ISmtpSettings smtpSettings)
 {
     _smtpSettingsConfig = smtpSettings;
 }
Exemple #8
0
 public EmailNotificationsActor(ISmtpSettings smtpSettings)
 {
     this.smtpSettings = smtpSettings;
 }
Exemple #9
0
 public MailKitSmtpClient(ITemplateTransformer templateTransformer, ILogger logger, ISmtpSettings smtpSettings)
 {
     _viewRenderService = templateTransformer ?? throw new ArgumentNullException(nameof(templateTransformer));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _smtpSettings = smtpSettings ?? throw new ArgumentNullException(nameof(smtpSettings));
 }
Exemple #10
0
 public Smtp(ISmtpSettings smtpSettings)
 {
     SmtpSettings = smtpSettings;
 }
Exemple #11
0
 public Smtp(IOptions <SmtpSettings> options)
 {
     SmtpSettings = options.Value;
 }
 public EmailService(ISmtpSettings smtpData)
 {
     _smtpData = smtpData;
 }
Exemple #13
0
 public NotificationsModule(ISmtpSettings smtpConfig, IEmailSettings mailConfig)
 {
     this.mailConfig = mailConfig;
     this.smtpConfig = smtpConfig;
 }
Exemple #14
0
 public SmtpProvider(ISmtpSettings smtpSettings)
 {
     _smtpSettings = smtpSettings;
 }
 public SendEmailSickLeaveActor(IEmailSettings mailConfig, ISmtpSettings smtpConfig)
 {
     this.mailConfig = mailConfig;
     this.smtpConfig = smtpConfig;
 }
Exemple #16
0
 public SmtpService(ISmtpSettings smtpSettings)
 {
     this.smtpSettings = smtpSettings;
 }