Exemplo n.º 1
0
        public static MailAdapter LoadFromSetting()
        {
            //MailServerInfo serverInfo = new MailServerInfo(MailSetting.Default.SmtpServer, MailSetting.Default.SmtpPort);
            //serverInfo.Username = MailSetting.Default.UserName;
            //serverInfo.Password = MailSetting.Default.Password;

            MailServerInfo serverInfo = MailSetting.Default.SmtpServerConn;

            //FileLogManager.Default.InforIt(serverInfo.ToString());
            return(new MailAdapter(serverInfo));
        }
Exemplo n.º 2
0
 public MailAdapter(MailServerInfo serverInfo)
 {
     _ServerInfo = serverInfo;
 }
Exemplo n.º 3
0
 public MailAdapter(int port = 25)
 {
     _ServerInfo = new MailServerInfo(port);
 }