public String sendMail(String mailTitle,String mailContent,String fileName, String receiver,String carbonCopy, List attachedFile) {
String sendResult = "";// 邮件发送结果
/**
* 邮件成功执行则不抛出异常,执行失败抛出异常,并返回邮件发送结果
*/
try {
Properties props = System.getProperties();
props.put("mail.smtp.host", "mail.chinamobilesz.com:25");
props.put("mail.smtp.auth", "true");
// props.put("mail.debug", "true");
//props.put("mail.smtps.timeout","25000");
Session session = Session.getInstance(props, null); // 根据邮件会话属性和密码验证器构造一个发送邮件的session
Message msg = new MimeMessage(session); // 根据session创建一个邮件消息
msg.setFrom(new InternetAddress("newbiztesting@chinamobilesz.com"));//设置邮件发送人地址
msg.setRecipients(Message.RecipientType.TO, //设置邮件接收人