摘要: 关键技术: 1、MimeMessage的setRecipients方法设置邮件的收件人,其中Message.RecipientType.TO常量表示收件人类型是邮件接收者,Message.RecipientType.CC常量表示收件人类型是抄送者,Message.RecipientType.BCC常量表示收件人的类型是密送着。 2、在调用MimeMessage的setRecipients方... 阅读全文
posted @ 2016-09-27 10:52 东北大亨 阅读(4890) 评论(0) 推荐(0) 编辑
摘要: /** * 方法描述:发送带附件的邮件 * * @throws UnsupportedEncodingException */ public static boolean sendEmailWithAttachment(Email email) throws UnsupportedEncodingE 阅读全文
posted @ 2016-09-27 10:05 东北大亨 阅读(347) 评论(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 东北大亨 阅读(305) 评论(0) 推荐(0) 编辑