public SmtpClient() { emailConfiguration = new EmailConfguration(); //emailConfiguration.AddSMTP("192.168.200.12", 25, "Anonymous", "*****@*****.**"); emailConfiguration.AddSMTP("localhost", 25, "Anonymous", "*****@*****.**"); emailClient = new EmailClientService(emailConfiguration); }
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); }