功能修改
continuous-integration/drone/push Build is running

This commit is contained in:
he
2026-05-29 11:02:24 +08:00
parent 9bbac291b6
commit 7bc0d7f3dc
2 changed files with 14 additions and 4 deletions
@@ -174,7 +174,7 @@ public static class SendEmailHelper
ReplaceHtmlContent(part, replacements);
}
}
else if (entity is TextPart textPart && textPart.ContentType.MediaType == "text/html")
else if (entity is TextPart textPart && textPart.IsHtml)
{
// 只有这里才是真正的 HTML
foreach (var kv in replacements)