1. Introduction:
The development of Java Mail API is a good example of SUN's continuous efforts to provide a public API framework for Java developers. A public framework is promoted to oppose solutions restricted by suppliers, which fully predicts the establishment of an increasingly open development environment.
The structure of the Java Mail API proves that the workload of software development depends on the complexity of the application and the degree of control required by the developer. In other words, the Java Mail API is as simple as possible. At first glance, the total number of classes in the JavaMail API and the relationship between classes may be misunderstood as it takes a long time to learn. In fact, once you start using the API, you will find that this API is a simple tool to add robust email/communication support to the application.
2. Installation:
Before installation, make sure that you have installed the standard JDK and Web server on your computer and have been configured. For how to install them, see other articles (available everywhere on the Internet ).
(1) install JavaMail API. Currently, the most common JavaMail API version is 1.3.
To use the JavaMail 1.3 API, download the JavaMail 1.3 file, open the javamail-_3.zip file, and add the mail. jar file to CLASSPATH. In addition to the core class, the SMTP, IMAP4, and POP3 vendors are provided along with the implementation of version 1.3.
(2). Installation of JavaBeans Activation Framework (1.0.2)
All versions of JavaMail API require JavaBeans Activation Framework to support the input and corresponding processing of any data block. There seems to be few features, but currently many browsers and mail tools can find this basic MIME-type support. After the framework is downloaded, unbind the jaf1_0_2.zip file and add the activation. jar file to CLASSPATH.
Note: If the JDK you are using is J2EE, there will be no specific things to do with the basic JavaMail API; The J2EE class will be able to handle, because it contains JavaMail API and JAF, you only need. add the jar file to your CLASSPATH and set it all.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.