private static void enviar(List<Persona> destinatarios, String cuerpo, StringBuffer asunto) throws FieldValidationException, MessageNotSentException { MailMessage mensaje = new MailMessage("GDO"); mensaje.setTitle(asunto.toString()); mensaje.setContentType(MediaType.TEXT_PLAIN); mensaje.setSender("*****@*****.**"); mensaje.setContent(cuerpo.toString()); for (Persona persona : destinatarios) { mensaje.addToRecipient(persona.getLogin() + "@uji.es"); } MessagingClient client = new MessagingClient(); client.send(mensaje); }