예제 #1
0
 public Mail(Dato dato, string destino) : this(destino)
 {
     Dato         = dato;
     this.From    = new MailAddress(Dato.Origen);
     this.Subject = Dato.Asunto;
     this.Body    = Dato.Cuerpo;
 }
예제 #2
0
 public bool Iniciar(Dato dato)
 {
     try
     {
         CargarContactos();
         foreach (var destino in ListaContactos)
         {
             var m = new Mail(dato, destino);
             Proceso.EnviarMail(m);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }