Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple recipients, one bad address = cero messages.  RSS feed

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

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

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

}
</code>

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
Boost this thread!