import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import credisystem.parametros.LeerCorreo;
import credisystem.servidor.rmi.CorrerProcesos;
/**
* @author aurizar
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class PruebaMandarEmail {
public static void main
(String[] args
) {
destinoEmail = LeerCorreo.getInstancia().getCorreos();
//de parte de
try {
CorrerProcesos.postMail(destinoEmail,"Prueba de Envio de Correro Credisystem","Mensaje Enviado a "+LeerCorreo.getInstancia().getDireccionServidorCorreo() +" Esto es una Prueba ","credisystemrmi@cuscatlanguate.com");
} catch (MessagingException e) {
// TODO Auto-generated catch block
}
}
}