feat(mailer): replace notice in footer to only refer to forum
Some checks are pending
Build and Publish Docker Image / Build and Publish Docker Image (amd64) (push) Waiting to run
Build and Publish Docker Image / Build and Publish Docker Image (arm64) (push) Waiting to run

This commit is contained in:
limes 2025-11-12 08:34:30 +01:00
parent 17b294e20f
commit 169dbdf729
2 changed files with 6 additions and 5 deletions

View File

@ -260,11 +260,9 @@
<td class="notice" style="color:#8990c1;text-align:center;font-size:14px;">
<div class="gmail-s">
<div class="gmail-d">
Note: this email message was auto-generated, please do not respond. For further
assistance, please join our <a href="https://discord.pretendo.network"
style="text-decoration:none;color:#fff;">Discord server</a> or make a
post on our <a href="https://forum.pretendo.network"
style="text-decoration:none;color:#fff;">Forum</a>.
Note: This is an automatic email; please do not respond.<br />For assistance, please
visit <a href="https://forum.pretendo.network"
style="text-decoration:none;color:#fff;">forum.pretendo.network</a>.
</div>
</div>
</td>

View File

@ -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;