I am using javax.mail
to call a mail server and send a file as a mail attachment encoding the file name like this:MimeUtility.encodeText(filename,"UTF-8",null)
While this has been working fine on WildFly 8
, it fails on WildFly 9.x
with the same mail server. What I mean is that the attachment description is received in this format : =UTF-8BzrTOv866zrnOvM63IM68zrUgzrXOu867zrfOvc65zrrOsS5wZGY==
I have been trying to:
1) Find a relative setting on the application server - no luck.
2) Encode with ISO-8859-7
which only works occasionally since it seems to depend on the filename length and the presence of some characters.
3) Find a relative setting on the client (microsoft outlook) which i suppose misses some info to decode successfully.
Any ideas?
Thanks in advance!!