Package ar.com.AmberSoft.iEvenTask.events

Source Code of ar.com.AmberSoft.iEvenTask.events.BackgroundSendMailAlert

package ar.com.AmberSoft.iEvenTask.events;

import java.util.ArrayList;
import java.util.Collection;
import java.util.TimerTask;

import org.apache.log4j.Logger;

import ar.com.AmberSoft.util.Email;

public class BackgroundSendMailAlert extends TimerTask{

  @SuppressWarnings("unused")
  private static Logger logger = Logger.getLogger(BackgroundSendMailAlert.class);
 
  @Override
  public void run() {
    // TODO Auto-generated method stub
   
  }
 

 
  public static void main(String []args){
    Email email = new Email();
    email.setMensaje(new StringBuffer("Hola Mundo"));
    Collection<String> destinatarios = new ArrayList<String>();
    destinatarios.add("llarreta@gmail.com");
    email.setDestinatarios(destinatarios);
    email.setAsunto("Probando");
    email.enviar();
  }
}
TOP

Related Classes of ar.com.AmberSoft.iEvenTask.events.BackgroundSendMailAlert

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.