mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复JakartaMailUtil引用javax的问题
This commit is contained in:
parent
ef90358c51
commit
7e539ec3ea
@ -1,6 +1,13 @@
|
|||||||
|
|
||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
# 5.8.31(2024-08-09)
|
||||||
|
|
||||||
|
### 🐣新特性
|
||||||
|
### 🐞Bug修复
|
||||||
|
* 【extra 】 修复JakartaMailUtil引用javax的问题
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.30(2024-08-09)
|
# 5.8.30(2024-08-09)
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ public class JakartaMail implements Builder<MimeMessage> {
|
|||||||
bodyPart.setDataHandler(new DataHandler(attachment));
|
bodyPart.setDataHandler(new DataHandler(attachment));
|
||||||
nameEncoded = attachment.getName();
|
nameEncoded = attachment.getName();
|
||||||
if (this.mailAccount.isEncodefilename()) {
|
if (this.mailAccount.isEncodefilename()) {
|
||||||
nameEncoded = InternalMailUtil.encodeText(nameEncoded, charset);
|
nameEncoded = JakartaInternalMailUtil.encodeText(nameEncoded, charset);
|
||||||
}
|
}
|
||||||
// 普通附件文件名
|
// 普通附件文件名
|
||||||
bodyPart.setFileName(nameEncoded);
|
bodyPart.setFileName(nameEncoded);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user