The development of the Java Mail API is a good example of sunes with the sustainable effort of Java developers with public API frameworks. Promote a public framework, opposing a resolution of the supplier, fully predicting an increasingly open development environment. The structure of the Java Mail API itself proves that one of its developers - the workload of software development should depend on the complexity of the application itself and the degree of control required by the developer. In other words, Java Mail APIs are as simple as possible. At first glance, the total number of classes and classes between Java Mail APIs may make people misunderstand long learning time. In fact, once you start using it, you will find that the API doesn't loses a simple tool for adding robust mail / communication support in the application.
This example is a simple instance of sending an email, by an HTML page that fills in the mail content Index.html. And the JSP page responsible for sending an email. For beginners have a good reference, detailed annotations are attached