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

alternative to sun.net.smtp.SmtpClient for sending emails  RSS feed

 
steve Barf
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately nobody has been able to offer a suggestion to my post about sun.net.smtp.SmtpClient hanging.

Could someone suggest an alternative method of sending emails from a Java application.

Thanks Steve
 
steve Barf
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've still got this problem of sun.net.smtp.SmtpClient hanging - would it be possible to run the code that hangs ie. the code that creates the client

SmtpClient client = new SmtpClient(SMTP_SERVER_IP);

in it's own method or thread that could timeout and could be retried if it fails ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!