Beispiel #1
0
 public EmailSender(
     string senderEmail,
     string senderPassword,
     int port = 587,
     string mailLocalFolder     = "",
     SMTPType smtpType          = SMTPType.Gmail,
     List <string> emailsToCopy = null)
 {
     _senderEmail     = senderEmail;
     _senderPassword  = senderPassword;
     _port            = port;
     _mailLocalFolder = mailLocalFolder;
     _smtpUrl         = SMTPFactory.GetSMTPUrl(smtpType);
     _emailsToCopy    = emailsToCopy ?? new List <string>();
 }
Beispiel #2
0
 public void SetSMTP(SMTPType smtpType)
 => _smtpUrl = SMTPFactory.GetSMTPUrl(smtpType);