mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-08 01:59:14 +08:00
Mail.buildContent改进,正文部分总在最前(issue#4072@Github)
This commit is contained in:
parent
905fcbdfac
commit
172bbff73e
@ -2,7 +2,7 @@
|
||||
# 🚀Changelog
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.41(2025-09-11)
|
||||
# 5.8.41(2025-09-13)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 增加`WeakKeyValueConcurrentMap`及其关联类,同时废弃`WeakConcurrentMap`并替换(issue#4039@Github)
|
||||
@ -15,6 +15,7 @@
|
||||
* 【extra 】 `RedisDS`增加`getPool`和`getSetting`方法(issue#ICVWDI@Gitee)
|
||||
* 【core 】 `NumberUtil.pow`增加重载,支持指数自定义保留位数(pr#4052@Github)
|
||||
* 【core 】 `NumberUtil.isPrimes`优化判断(pr#4058@Github)
|
||||
* 【extra 】 `Mail.buildContent`改进,正文部分总在最前(issue#4072@Github)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【core 】 修复`ReflectUtil`中因class和Method关联导致的缓存无法回收问题(issue#4039@Github)
|
||||
|
||||
@ -465,7 +465,7 @@ public class Mail implements Builder<MimeMessage> {
|
||||
// 正文
|
||||
final MimeBodyPart body = new MimeBodyPart();
|
||||
body.setContent(content, StrUtil.format("text/{}; charset={}", isHtml ? "html" : "plain", charsetStr));
|
||||
this.multipart.addBodyPart(body);
|
||||
this.multipart.addBodyPart(body, 0);
|
||||
|
||||
return this.multipart;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user