`
hacker_zxf
  • 浏览: 144670 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Commons Email 简单发送Email

阅读更多
org.apache.commons.mail
使用太简单了,一看例子就会了,它基于java mail开发;
地址为:http://commons.apache.org/email/userguide.html

主要的几个类:
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 attachments either 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. 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics