예제 #1
0
 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)
     };
 }
예제 #2
0
 public SmtpEmailFactory(MailSettings mailSettings)
 {
     _mailClientSettings = mailSettings;
 }