예제 #1
0
 public SmtpClient()
 {
     emailConfiguration = new EmailConfguration();
     //emailConfiguration.AddSMTP("192.168.200.12", 25, "Anonymous", "*****@*****.**");
     emailConfiguration.AddSMTP("localhost", 25, "Anonymous", "*****@*****.**");
     emailClient = new EmailClientService(emailConfiguration);
 }
예제 #2
0
 public SmtpClient(string host, int port, string user, string password)
 {
     emailConfiguration = new EmailConfguration();
     //emailConfiguration.AddSMTP("192.168.200.12", 25, "Anonymous", "*****@*****.**");
     //emailConfiguration.AddSMTP("localhost", 25, "Anonymous", "*****@*****.**");
     emailConfiguration.AddSMTP(host, port, user, password);
     emailClient = new EmailClientService(emailConfiguration);
 }
예제 #3
0
 public EmailClientService(smtp_client.EmailConfguration _emailConfiguration)
 {
     smtpClient         = new MailKit.Net.Smtp.SmtpClient();
     emailConfiguration = _emailConfiguration;
 }