feat: custom email message

This commit is contained in:
Elias Schneider
2022-12-15 21:44:04 +01:00
parent bfb47ba6e8
commit 0616a68bd2
6 changed files with 43 additions and 10 deletions

View File

@@ -28,7 +28,11 @@ export class EmailService {
from: `"Pingvin Share" <${this.config.get("SMTP_EMAIL")}>`,
to: recipientEmail,
subject: "Files shared with you",
text: `Hey!\n${creator.username} shared some files with you. View or dowload the files with this link: ${shareUrl}\nShared securely with Pingvin Share 🐧`,
text: this.config
.get("EMAIL_MESSAGE")
.replaceAll("\\n", "\n")
.replaceAll("{creator}", creator.username)
.replaceAll("{shareUrl}", shareUrl),
});
}
}