• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Multiple recipients, one bad address = cero messages.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic