public SmtpClientWrapper(MailSettings mailClientSettings) { _smtpClient = new SmtpClient { EnableSsl = mailClientSettings.EnableSsl, Host = mailClientSettings.Host, Port = mailClientSettings.Port, Timeout = mailClientSettings.Timeout, Credentials = new NetworkCredential(mailClientSettings.UserName, mailClientSettings.Password) }; }
public SmtpEmailFactory(MailSettings mailSettings) { _mailClientSettings = mailSettings; }