JSP and JavaMail (i)

Source: Internet
Author: User
Tags mail zip
JS 1. Introduction:

The development of the Java Mail API is a good example of the ongoing effort by Sun to provide Java developers with a common API framework. The promotion of a common framework against vendor-Limited Solutions is a good predictor of an increasingly open development environment.
The structure of the Java Mail API itself attests to one of the basic goals of its developers-the amount of software development effort should depend on the complexity of the application itself and the degree of control required by the developer. In other words, the Java Mail API remains as simple as possible. At first glance, the total number of classes owned by the JavaMail API and the relationships between classes can be misunderstood as taking a long time to learn. In fact, once you start using it, you'll find that the API is a simple tool for adding robust messaging/communication support to your application.

2. Installation:

Before installing, make sure that you have a standard version of JDK and Web servers installed on your machine, and that you have configured them for installation, refer to other articles (all over the Internet).

(1). Install the JavaMail API. The most common version of the JavaMail API is now 1.3.
To use the JavaMail 1.3 API, download the JavaMail 1.3 implementation, unlock the Javamail-1_3.zip file, and add the Mail.jar file to the CLASSPATH. In addition to the core classes, the SMTP, IMAP4, and POP3 vendors are provided along with the version 1.3 implementation.
  
(2). Installation of the JavaBeans Activation Framework (1.0.2 edition)
All versions of the JavaMail API require the JavaBeans activation Framework to support the input and processing of arbitrary blocks of data. Features seem to be few, but this basic MIME-type support is found in many browsers and messaging tools. After downloading the frame, unpack the Jaf1_0_2.zip file and add the Activation.jar file to the CLASSPATH.
  

Note: If the JDK you are using is Java EE, there is no specific thing to do with the basic JavaMail API; The Java EE class can handle it because it contains JavaMail APIs and JAF, and you just need to J2ee.jar The files are added to your classpath and are all set up.


Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.