Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion in JavaMail

 
yogi maheshnath
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,



How to test this program with Tomcat.I am using airtel internet connection.
what should i write in this line " String host = "smtp.yourisp.net";" in above code.Please Explain.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the host name of the SMTP server. Your ISP can tell you what that is. You'll very likely also have to use authentication and set the password; this page tells you how to do that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic