public static Email Using(this Email email, string host, int port, string username = null, string password = null, bool useSsl = true) { var server = new SmtpServer { Host = host, Port = port, Username = username, Password = password, EnableSSL = useSsl }; email.Server = server; return(email); }
public static Email Using(this Email email, string host, int port, string username = null, string password = null, bool useSsl = true) { var server = new SmtpServer { Host = host, Port = port, Username = username, Password = password, EnableSSL = useSsl }; email.Server = server; return email; }