Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29975

MimeMessageHelper cyrillic name attachment

$
0
0

Good day! Can't find the answer on my problem, so I need a help. I'm using MimeMessage to send e-message with pdf attachment which has cyrillic name. On thunderbird mail client I see attachmen's name as it should be(without any problem), but on outlook attachment's name look's like =UTF-8?4FG54... Attachment is pdf file, can't understand why it's happening, because I see mail's body text and subject on cyrillic on both clients properly.

MimeMessageHelper messageHelper = new MimeMessageHelper(message, true, "UTF-8");
messageHelper.setFrom("myMail@mail.com");
messageHelper.setTo("target@mail.com");
messageHelper.setSubject("Заголовок");
messageHelper.setText("Письмо");
messageHelper.addAttachment("Файл.pdf", new ByteArrayResource(data));
javaMailSender.send(message);  

message is MimeMessage type


Viewing all articles
Browse latest Browse all 29975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>