fix: remove HTML document wrapper from email templates for GMX compat
GMX webmail broke after adding <!DOCTYPE html><html><head><body>
wrappers — the Logto SMTP connector sets these as nodemailer's html
field, and GMX's sanitizer chokes on a full document inside its own
page shell. Reverts to bare HTML fragments (the format that worked
before 12:17 commit 484a388) while keeping the extra text paragraphs
added for mail checker text-to-HTML ratio compliance.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -34,17 +34,6 @@ class EmailTemplateLoadingTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void templatesContainHtmlStructure() throws IOException {
|
||||
for (String path : TEMPLATE_FILES) {
|
||||
String content = new ClassPathResource(path).getContentAsString(StandardCharsets.UTF_8);
|
||||
assertTrue(content.contains("<!DOCTYPE html>"),
|
||||
path + " must contain DOCTYPE declaration");
|
||||
assertTrue(content.contains("<html"),
|
||||
path + " must contain <html> tag");
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void templatesContainWatermarkPlaceholder() throws IOException {
|
||||
for (String path : TEMPLATE_FILES) {
|
||||
|
||||
Reference in New Issue
Block a user