2012-01-20 34 views

回答

6
MimeMessageHelper message = new MimeMessageHelper(mimeMessage, true, "UTF-8"); 
// you can either do it this way with a regular string 
message.setFrom("John Smith <[email protected]>"); 

// or this way with an InternetAddress 
message.setFrom(new InternetAddress("[email protected]", "John Smith")); 
相關問題