コード例 #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);
 }