Missing start boundary Exception when reading messages with an attachment file

前端 未结 2 754
一个人的身影
一个人的身影 2021-01-05 04:53

I don\'t know why I\'m getting the following exception when reading a mail with an attachment file from mail server:

Exception in thread \"main\" javax.mail.         


        
2条回答
  •  囚心锁ツ
    2021-01-05 05:41

    try to set mode on the multipartEntityBuilder ex: multipartEntityBuilder.setMode(HttpMultipartMode.RFC6532);

提交回复
热议问题