Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SendFailedException ?  RSS feed

 
wu jong
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes, I get a SendFailedException even if the mail is successfuly delivered. How am I supposed to digest this fact ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show us your code. The exception might be the result of something else.
 
wu jong
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a simple

theMessage.setFrom


InternetAddress[] xyz = get a list

theMessage.setRecipients

mimeBodyPart.setText

Transport.send

This delivers the e-mail, but sometimes raises a SendFailedException even if it is delivered.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "special" reason why a SendFailedException might be generated, so no one can do anything more than guess wildly unless we can see the code you use.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!