Javamail is Sun's application interface for email processing. It provides some of the most common implementation methods for mail transfer protocols and provides easy methods to call them. Javamail is an application interface released by Sun, so it is not included by JDK yet. Therefore, you need to download the javamail package from Sun's official website. In add
Do you want to create an email sending and receiving tool in jsp (preferred for SUN Enterprise Applications? The following describes how to create an email sending and receiving tool in jsp (the preferred choice for SUN Enterprise applications. In this article, you will learn some key points of the JavaMail API and how to use it in jsp (the preferred choice for SUN Enterprise applications. This article also includes examples of using
Do you want to create an email sending and receiving tool in jsp? The following describes how to create an email sending and receiving tool in jsp. In this article, you can learn some key points of JavaMailAPI and how to use it in JSP. This article also includes examples of using JavaMail in JSP. JavaMail is a powerful API in JSP applications. Read this article JavaMail
Overview
1, mail-related standards
The JavaMail service program provided by the manufacturer can selectively implement certain mail protocols, and common mail protocols include:
SMTP (Simple Mail Transfer Protocol): The Easy Mail Transfer Protocol, which is a set of rules for sending messages from source to destination to control how the letters are transferred.
POP3 (Post Office Protocol–version 3): Post Office Protocol version 3, a standard prot
I believe many people have MSN Chat tool account number, such as abc@hotmail.com, this account is actually an e-mail address, you can perform normal mail transceiver function, you can through the Web site http://www.hotmail.com To access and manipulate this mailbox to send and receive mail. But this mailbox has a limit is that it does not provide POP3 or SMTP service, which means that the general mail client tools can not use this mailbox, although there are many mail tools to support Hotmail ma
Do you want to create an email sending and receiving tool in JSP? The following describes how to create an email sending and receiving tool in JSP. In this article, you will learn some key points of the javamail API and how to use it in JSP. This article also includes examples of using javamail in JSP. Javamail is a powerful API in JSP applications.
Reading this
Part 2: About javamail
Document usage
The documentation in the downloaded javamail API is very useful. You can find it in/docs/javadocs/index.html under javamail. The second part mainly analyzes the mail program components. You can read the document for more information.
Javamail is required for the component to send e
The previous section introduced the basic knowledge of the email system. The blog briefly introduced the basic theoretical knowledge, which does not prevent us from developing emails. Now we start Java mail development.
1. Introduction to JavaMail
JavaMail, as its name implies, provides developers with programming interfaces related to email processing. It is an API released by Sun to process emails. It ca
(recipienttype.to, address); - in //Set Send Message theMsg.setsentdate (NewDate ()); the About //Set Message subject theMsg.setsubject (Theme + "[System Alert]"); the theStringBuffer con =NewStringBuffer (); +Con.append (" -+ content.tostring () + "' > View details ); the Bayi //Set Message text content theMsg.setcontent (Con, "Text/html;charset=utf-8"); the - //save and generate the final message content - msg.savechanges (); the the //Send mail th
JS Part II: About JavaMail
Use of documents
The documentation that is available in the downloaded JavaMail API is useful. You can find it in the/docs/javadocs/index.html under the JavaMail. The second part mainly analyzes the components of the mail program. You can read the documentation to get more information on this.
Component to send mail requires the use of
JS are you interested in using JSP to construct the mail tool? If yes, then you come to the right place. This tutorial will demonstrate the underlying concepts behind the mail tool, including the HTML code that collects the email data, several key features of the JavaMail API, and how to integrate these features into the JSP. This javamail introductory tutorial includes an example of a successful implementa
Javaweb Learning Summary (52)--Create a message and send a message using JavaMail simple description of the RFC882 documentThe RFC882 document specifies how to write a simple message (plain text message), a simple message containing two parts of the message header and the message body, separated by a blank line between the message header and the message body.The message header contains the following:
from field--to indicate the sender
T
Introduction to common classes of javamail
Instructions in advance:
Users who have never used javamail can understand these introductions, but it doesn't matter. There are specific examples in the subsequent articles. You can also come back to view the usage of these classes.
(1) javax. Mail. properties classJavamail needs properties to create a session object. It will look for the string "mail. SMTP. Host"
POP and IMAP can be used to collect mail, both in the client/server mode, and the main difference is that they retrieve the message in a different way. When you use POPs, messages reside on the server, and once you receive messages, messages are downloaded from the server to the user's computer. IMAP, however, enables the user to understand that the message is stored on the server, and that the downloaded message is still stranded on the server for the purpose of archiving and sharing messages.
Program
The JavaMail API is an optional package (standard extension) for reading, writing, and sending electronic messages that can be used to establish standards-based e-mail clients that configure various Internet mail messages, including SMTP, POP, IMAP, and MIME, as well as related NNTP, S/MIME and other agreements. It is often necessary to develop javamail programs with the Sun's JavaBeans activati
JS Part II: About JavaMail
Use of documents
The documentation that is available in the downloaded JavaMail API is useful. You can find it in the/docs/javadocs/index.html under the JavaMail. The second part mainly analyzes the components of the mail program. You can read the documentation to get more information on this.
Component to send mail requires the use of
JS second part, about JavaMail
Working with Documents
After downloading the JavaMail API, the documents contained therein are very useful and the documents are stored in the subdirectory/docs/javadocs/of the directory where the JavaMail resides. The following describes some of the components that are required in the messaging tool. Please refer to the
The common class introduction of JS 3.JavaMail
Prior description:
People who have never used javamail may not be able to understand these introductions, but it does not matter, the following articles have specific examples, and then can be inverted back to see the use of these classes.
(1) Javax.mail.Properties class
JavaMail requires properties to create a S
N JavaMail you'll find APIs and provider implementations allowing you to develop fully functional email client applications. "Email client applications" invokes thoughts of Microsoft Outlook; and, yes, you cocould write your own Outlook replacement. but an email client need not reside on a client machine at all. indeed, it cocould be a servlet or an EJB running on a remote server, providing end-user ac Cess to email via a Web browser. think of Hotmail
The common class introduction of JS 3.JavaMail
Prior description:
People who have never used javamail may not be able to understand these introductions, but it does not matter, the following articles have specific examples, and then can be inverted back to see the use of these classes.
(1) Javax.mail.Properties class
JavaMail requires properties to create a S
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.