Hi. Ich hab folgendes Problem. Im String array sind die Empfänger verzeichnet. Wenn ich aber mehrere Empfänger habe,und den unten sthehenden Code ausführe, wird die Email nur einmal versandt.Kann ichn nur einen Empfänger ins „TO“ Feld schreiben oder woran liegts?
public static void sendMailTo (String []array, String inhalt) throws MessagingException
{
//fill props with any information
Properties props = new Properties();
props.put(„mail.smtp.host“,„xxx.xxx.xxx.xxx“);
//open Session with props
Session session = Session.getDefaultInstance(props, null);
//Create MimeMessage with Subject and Content
MimeMessage message = new MimeMessage(session);
message.setContent(inhalt, „text/plain“);
message.setSubject(„Email“);
//Set Addresses from and to
Address adressfrom = new InternetAddress(array[0]);
message.setFrom(adressfrom);
int _intCounter =1;
while(_intCounter