Java mail

JavaMail Projects

JavaMail Project 1

adplus-dvertising
Installation of JAVA MAIL API
Previous Home Next

If you want to using JavaMailAPI , then download the JavaMail implementation , unbundled the javamail-[version].zip file , and to mail. jar file to your CLASSPATH. then implementation using the comes with an SMTP , IMAP4, and POP3. it is provider to besides the core classes.

Note : If you installing Sun's JavaMail implementation, After installing Sun's JavaMail implementation, you can find many example programs in the demo directory.

There are two versions are using in this time for JavaMail implementation, 1.2 and 1.1.3, and 1.2 is the latest version using today. The 1.1.3 version included with 1.2.1version of the java 2 platform, it is known J2EE(Enterprise Edition) so, it's commonly used . The JavaMail responsible use affects what you download and install. All will work with JDK 1.1.6+, Java 2 Platform, Standard Edition (J2SE) version 1.2.x, and J2SE version 1.3.x . when you are totally install the JavaMail implementation after then install JavaBeans Activation Framework.

Installation of JavaBeans Activation Framework:

Every versions using of JavaMail API require the JavaBeans Activation Framework. The framework are supported by arbitrary blocks of data and handling it accordingly. The basic MIME is the supported in many browsers and mail box. After downloading this framework , unbundled jaf-[version].zip file and activation.jar file to your CLASSPATH. Then it is necessary add mail.jar and activation.jar to your CLASSPATH.

If you using JavaMail 1.2 version then added mail.jar and activation.jar to your CLASSPATH. or If you using the JavaMail1.1.3 version then added mail.jar ,pop3.jar an activation.jar to your CLASSPATH .If you have no plans of using POP3, you don't need to add pop3.jar to your CLASSPATH. When you want to change the CLASSPATH environment variable, then copy to all jar files to your lib/ext under the directory Java Runtime Environment (JRE) directory. J2SE released ,the default directory c:\jdk\jre\lib/ext on a windows platform.

If you using with Java 2 Enterprise Edition:

If you using with Java 2 Enterprise Edition , then it is nothing specially you have to do using basic JavaMail API. It commonly comes with the using J2EE classes. then in your program set the j2ee.jar file into CLASSPATH. For J2EE 1.2.1, POP3 provides separately, so download and follow the steps to include the POP3 provider as shown in the previous section "Installing JavaMail 1.1.3."

Previous Home Next