09 2016 档案

摘要:关键技术: 1、MimeMessage的setRecipients方法设置邮件的收件人,其中Message.RecipientType.TO常量表示收件人类型是邮件接收者,Message.RecipientType.CC常量表示收件人类型是抄送者,Message.RecipientType.BCC常量表示收件人的类型是密送着。 2、在调用MimeMessage的setRecipients方... 阅读全文
posted @ 2016-09-27 10:52 东北大亨 阅读(4922) 评论(0) 推荐(0) 编辑
摘要:/** * 方法描述:发送带附件的邮件 * * @throws UnsupportedEncodingException */ public static boolean sendEmailWithAttachment(Email email) throws UnsupportedEncodingE 阅读全文
posted @ 2016-09-27 10:05 东北大亨 阅读(349) 评论(0) 推荐(0) 编辑
摘要:package com.northeasttycoon.monitor.service; import static java.lang.System.out; /** * Created by northeasttycoonon 2015/9/20. */ public class ServerMessager { public void print(String... ar... 阅读全文
posted @ 2016-09-27 09:38 东北大亨 阅读(306) 评论(0) 推荐(0) 编辑
摘要:我用的gradle建立的工程,以上以163邮箱为例子代码,完成以上代码需要jar包,在build.gradle中添加 阅读全文
posted @ 2016-09-26 13:32 东北大亨 阅读(275) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示