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.
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.