Skip to content

Commit

Permalink
Update JavaMailTask.java
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhida authored Mar 31, 2017
1 parent 973a8c6 commit 55b99af
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static public void sendMail(int all, int successnum, int failnum, String mailSub
+ "</tr>"
+ "</table></body></html>", "text/html;charset=utf-8");
// 设置发件人
msg.setFrom(new InternetAddress("apiauto@tuniu.com"));
msg.setFrom(new InternetAddress("apiauto@xxx.com"));

// 设置收件人

Expand All @@ -94,6 +94,6 @@ static public void sendMail(int all, int successnum, int failnum, String mailSub
//测试
public static void main(String[] args) throws MessagingException {

sendMail(5,5,0,"接口报告","baozhida@tuniu.com,tengaiqing@tuniu.com");
sendMail(100,89,11,"接口报告","aaa@xxx.com,bbb@xxx.com");
}
}
}

0 comments on commit 55b99af

Please sign in to comment.