本月博客排行
-
第1名
hanbaohong -
第2名
silverend -
第3名
jh108020 - arpenker
- java-007
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
wy_19921005 - 青否云后端云
- benladeng5225
- vipbooks
- kaizi1992
- e_e
- arpenker
- tanling8334
- sam123456gz
- zysnba
- fantaxy025025
- xiangjie88
- lemonhandsome
- wallimn
- ganxueyun
- Xeden
- zhanjia
- wangchen.ily
- xyuma
- jh108020
- johnsmith9th
- zxq_2017
- jbosscn
- forestqqqq
- ajinn
- daizj
- xpenxpen
- 喧嚣求静
- silverend
- kingwell.leng
- kristy_yy
- lchb139128
- jveqi
- lzyfn123
- javashop
- java-007
- sunj
- yeluowuhen
- lerf
- xiaoxinye
- flashsing123
- chenqisdfx
- bosschen
- zhangjijun
- lyndon.lin
- sunnylocus
- lyj86
- paulwong
最新文章列表
使用Apache common email发送163邮件
使用commons-email发送邮件:http://commons.apache.org/proper/commons-email/index.html
使用到的Jar:
commons-email-1.2.jar
mailapi.jar(主要提供InternetAddress类)
main方法测试:
public static void main(String[] ...
通过commons-email发送邮件
首先,去http://commons.apache.org/email/把commons-email-1.2-bin.zip下载下来,然后把其中的commons-email-1.2.jar包导入项目中。
commons-email-1.2.jar很小,只有32k,也就 ...
Commons-Email 简单教程
一:Quick Start
通过SimpleEmail发送邮件
java.lang.Object
org.apache.commons.mail.Email
org.apache.commons.mail.SimpleEmail
SimpleEmail email = new SimpleEmail();
email.setHostName("mail.4ya.cn&quo ...