From 169dbdf729ecdefaff36ca693b0bc5a1bfe32b8d Mon Sep 17 00:00:00 2001 From: limes Date: Wed, 12 Nov 2025 08:34:30 +0100 Subject: [PATCH] feat(mailer): replace notice in footer to only refer to forum --- src/assets/emails/genericTemplate.html | 8 +++----- src/mailer.ts | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/assets/emails/genericTemplate.html b/src/assets/emails/genericTemplate.html index d1331f2..9ea9190 100644 --- a/src/assets/emails/genericTemplate.html +++ b/src/assets/emails/genericTemplate.html @@ -260,11 +260,9 @@
- Note: this email message was auto-generated, please do not respond. For further - assistance, please join our Discord server or make a - post on our Forum. + Note: This is an automatic email; please do not respond.
For assistance, please + visit forum.pretendo.network.
diff --git a/src/mailer.ts b/src/mailer.ts index 0e4ab1a..4cdd85c 100644 --- a/src/mailer.ts +++ b/src/mailer.ts @@ -198,6 +198,9 @@ export class CreateEmail { // the signature is baked into the template, so it needs to be added manually to the plaintext version plainText += '\n\n- The Pretendo Network team'; + // and so is the notice about the email being auto-generated + plainText += '\n\nNote: This is an automatic email; please do not respond. For assistance, please visit https://forum.pretendo.network.'; + plainText = plainText.replace(/(<([^>]+)>)/gi, ''); return plainText;