Example #1
0
 public SmtpEmailSender(string emailHost, int emailPort)
 {
     this.client                = new SmtpClient(emailHost, emailPort);
     this.client.EnableSsl      = true;
     this.client.Credentials    = new NetworkCredential(AdminModule.GetAdminUserName(), AdminModule.GetAdminPassword());
     this.client.SendCompleted += SmtpEmailSender.Client_SendCompleted;
 }