Complete javamail User Manual. <organize and organize javamail by referring to the online content.>

Source: Internet
Author: User
There are too few excellent articles of my own, and I really don't have a "face". Please strive for it.
1. Where is the start:
In the initial environment, install your j2sdk and your web server. That is to say, your machine should be able to run jsp.
No ??
No matter here
2. Install javamail and jaf
JavaMail is an API released by Sun to process emails. It can easily perform some common mail transmission.
Supports pop3, imap, and smtp.
Although JavaMail is one of Sun's APIs, it has not yet been added to the standard java Development Kit (Java Development Kit ),
This means you must download the JavaMail file before using it. In addition, you also need Sun's JavaBeans Activation Framework (JAF ).
The execution of the JavaMail Activation Framework is very complex. In this example, JavaMail must depend on its support.
Go to and add two zip packages (javamail and jaf)
3. Configuration
Decompress the two zip files to c: (here is an example. You may be different)
Add mail. jar of javamai and activation. jar of jaf to the environment variable.
4. HTML source code used to send emails
<FORM action = "sendmail. jsp" method = "post">
<TABLE align = "center">
& Lt; TD width = "50%" & gt;
To: <BR> <INPUT name = "to" size = "25">
& Lt; TD width = "50%" & gt;
From: <BR> <INPUT name = "from" size = "25">
<TD colspan = "2">
Subject: <BR> <INPUT name = "subject" size = "50">

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: 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.