1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-21 01:38:51 +00:00

feat: 添加邮件发送案例

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-12-09 20:32:23 +08:00
parent 1b37f3689e
commit f6b8aec813

View File

@ -9,6 +9,10 @@ import com.google.common.net.HostAndPort;
*/
public class MailAPI {
public static void main(String[] args) {
send(HostAndPort.fromParts("smtp.exmail.qq.com", 465), "root@yumc.pw", "admin@yumc.pw", "Java邮件测试", "邮件测试", "root@yumc.pw", "Email2Send");
}
/**
* 快速发信
*