Commons Email 【Z】
<div class="blog_content">(1)下载Commons EmailCommons Email位于Apache的Commons下。
地址是:http://commons.apache.org/email/
下载地址是:http://commons.apache.org/downloads/download_email.cgi
(2)官方简介:
Commons Email aims to provide a API for sending email. It is built on top of the Java Mail API, which it aims to simplify. Some of the mail classes that are provided are as follows:
● SimpleEmail - This class is used to send basic text based emails.
● MultiPartEmail - This class is used to send multipart messages. This allows a text message with attachmentseither inline or attached.
● HtmlEmail - This class is used to send HTML formatted emails. It has all of the capabilities as MultiPartEmail allowing attachments to be easily added. It also supports embedded images.
● EmailAttachment - This is a simple container class to allow for easy handling of attachments. It is for use with instances of MultiPartEmail and HtmlEmail.
(3)
Commons-Email 简单教程
Commons Emails ,目的是为了简化JavaMail。
知道有它几个class吗?你一定想不到,只有8个!
一:Quick Start
通过SimpleEmail发送邮件
<div style="padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee; border: 1px solid #cccccc;">1http://www.blogjava.net/Images/OutliningIndicators/None.gifjava.lang.Object
2http://www.blogjava.net/Images/OutliningIndicators/None.gif org.apache.commons.mail.Email
3http://www.blogjava.net/Images/OutliningIndicators/None.gif org.apache.commons.mail.SimpleEmail
页:
[1]