Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple recipients, one bad address = cero messages.

carlos olmos
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm sending and email (using javamail) to multiple recipients using something like this:

for(int e=0; e<recips.size();e++){
message.addRecipient(Message.RecipientType.TO, (InternetAddress)recips.elementAt(e));
message.addRecipient(Message.RecipientType.CC, (InternetAddress)recips.elementAt(e));


Everything works fine except when one of the adresses doesn't really exist, then the message isn't sent to any of the other addresses. That is I get a all or none delivery....

I would like to send the message to the addreses that do exist even if one of them don't.

Please advise....

Carlos Olmos.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic