Exemplo n.º 1
0
 public Mensaje(string From_Address, string From_DisplayName, MailSMTP smtp)
 {
     this.From_Address = From_Address;
     this.From_DisplayName = From_DisplayName;
     this.SMTP_CREDENTIALS_USER = smtp.SMTP_CREDENTIALS_USER;
     this.SMTP_CREDENTIALS_PASS = smtp.SMTP_CREDENTIALS_PASS;
     this.SMTP_HOST = smtp.SMTP_HOST;
     this.SMTP_PORT = smtp.SMTP_PORT;
 }
Exemplo n.º 2
0
        public void Enviar()
        {
            if (!string.IsNullOrEmpty(this.host))
            {
                MailSMTP ms = new MailSMTP(this.user, this.pass, this.host, this.port);

                Mail xx = new Mail(ms, this.asunto, this.body, true, this.para);

                xx.EnviarThread(true);
            }
        }