Que onda chavos como le hago para mandar mensajes a varias personas a la vez,,,,
Intente cono esto;
MimeMessage message = new MimeMessage(s);
String toAddresses = request.getParameter("Email");
InternetAddress from = new InternetAddress(toAddresses);
message.setFrom(from);
InternetAddress to = new InternetAddress("[email protected]; [email protected]; [email protected]");
InternetAddress ccAddress = new InternetAddress("[email protected]. com");
message.addRecipient(Message.RecipientType.TO, to);
message.addRecipient(Message.RecipientType.CC, ccAddress);
String subject = "Comentario";
message.setSubject(subject);
message.setText(text);
pero me da un error
como le hago ????