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); }
public SheshaEmailSender(ISmtpEmailSenderConfiguration configuration, ISmtpSettings smtpSettings, IEmailImagesHelper imagesHelper) : base(configuration) { _smtpSettings = smtpSettings; _imagesHelper = imagesHelper; }
public SmtpSettingsService(ISmtpSettings smtpSettings) { _smtpSettingsConfig = smtpSettings; }
public EmailNotificationsActor(ISmtpSettings smtpSettings) { this.smtpSettings = smtpSettings; }
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)); }
public Smtp(ISmtpSettings smtpSettings) { SmtpSettings = smtpSettings; }
public Smtp(IOptions <SmtpSettings> options) { SmtpSettings = options.Value; }
public EmailService(ISmtpSettings smtpData) { _smtpData = smtpData; }
public NotificationsModule(ISmtpSettings smtpConfig, IEmailSettings mailConfig) { this.mailConfig = mailConfig; this.smtpConfig = smtpConfig; }
public SmtpProvider(ISmtpSettings smtpSettings) { _smtpSettings = smtpSettings; }
public SendEmailSickLeaveActor(IEmailSettings mailConfig, ISmtpSettings smtpConfig) { this.mailConfig = mailConfig; this.smtpConfig = smtpConfig; }
public SmtpService(ISmtpSettings smtpSettings) { this.smtpSettings = smtpSettings; }