Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Mail  RSS feed

 
Rudolf Castelino
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I'm writting a javamail aplication which needs to find out the addresses to which the message was not sent.
Please help in this regard.
 
Mike DeStefano
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the SendFailedException class. It has methods which can tell you which addresses were sent and which were not.
This Exception is thrown from the Transport.send method... Hope this info helps.
 
Rudolf Castelino
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been trying to trap the SendFailedException . However, the exception is never raised.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!