System.setProperty("mail.mime.splitlongparameters", "false");
MimeMessage message = sender.createMimeMessage();
MimeMessageHelper helper = new MimeMessageHelper(message, true, "UTF-8");
// Your email content
helper.setFrom("...");
helper.setTo("...");
helper.setSubject("...");
helper.setText("...");
helper.addAttachment(
MimeUtility.encodeWord(attachmentFilename),
attachmentConten
'Development > Web & Server' 카테고리의 다른 글
How do I redirect HTTP traffic on my server to HTTPS on my load balancer? (0) | 2017.10.26 |
---|---|
Redirect from HTTP to HTTPS and viceversa with Apache ProxyPass (0) | 2017.10.26 |
React에 XLSX & Webpack 설정 (0) | 2017.01.06 |
SPRING BOOT COMMUNICATIONS LINK FAILURE WITH MYSQL AND HIBERNATE (0) | 2016.05.09 |
[MongoDB] EC2 설치 후 연결이 안될때 (0) | 2016.05.03 |