예제 #1
0
 public static void SendAsync(EmailCredential credential, EmailHelperModel model)
 {
     using (EmailHelper emailHelper = new EmailHelper(credential))
     {
         emailHelper.SendAsync(model);
     }
 }
예제 #2
0
 public EmailHelper(EmailCredential credential)
     : this(credential.SmtpPort, credential.SmtpServer, credential.LoginName, credential.Password)
 {
 }