diff --git a/backend/prisma/seed/config.seed.ts b/backend/prisma/seed/config.seed.ts index 83c1195b..a2031437 100644 --- a/backend/prisma/seed/config.seed.ts +++ b/backend/prisma/seed/config.seed.ts @@ -84,7 +84,7 @@ const configVariables: ConfigVariables = { shareRecipientsMessage: { type: "text", defaultValue: - "Hey!\n\n{creator} shared some files with you, view or download the files with this link: {shareUrl}\n\nThe share will expire {expires}.\n\nNote: {desc}\n\nShared securely with Pingvin Share 🐧", + "Hey!\n\n{creator} ({creatorEmail}) shared some files with you, view or download the files with this link: {shareUrl}\n\nThe share will expire {expires}.\n\nNote: {desc}\n\nShared securely with Pingvin Share 🐧", }, reverseShareSubject: { type: "string", diff --git a/backend/src/email/email.service.ts b/backend/src/email/email.service.ts index 8218d29b..7133579f 100644 --- a/backend/src/email/email.service.ts +++ b/backend/src/email/email.service.ts @@ -69,6 +69,7 @@ export class EmailService { .get("email.shareRecipientsMessage") .replaceAll("\\n", "\n") .replaceAll("{creator}", creator?.username ?? "Someone") + .replaceAll("{creatorEmail}", creator?.email ?? "") .replaceAll("{shareUrl}", shareUrl) .replaceAll("{desc}", description ?? "No description") .replaceAll( diff --git a/frontend/src/i18n/translations/en-US.ts b/frontend/src/i18n/translations/en-US.ts index 4ae7cec6..f44a3997 100644 --- a/frontend/src/i18n/translations/en-US.ts +++ b/frontend/src/i18n/translations/en-US.ts @@ -438,7 +438,7 @@ export default { "Subject of the email which gets sent to the share recipients.", "admin.config.email.share-recipients-message": "Share recipients message", "admin.config.email.share-recipients-message.description": - "Message which gets sent to the share recipients. Available variables:\n {creator} - The username of the creator of the share\n {shareUrl} - The URL of the share\n {desc} - The description of the share\n {expires} - The expiration date of the share\n These variables will be replaced with the actual value.", + "Message which gets sent to the share recipients. Available variables:\n {creator} - The username of the creator of the share\n {creatorEmail} - The email of the creator of the share\n {shareUrl} - The URL of the share\n {desc} - The description of the share\n {expires} - The expiration date of the share\n These variables will be replaced with the actual value.", "admin.config.email.reverse-share-subject": "Reverse share subject", "admin.config.email.reverse-share-subject.description": "Subject of the sent email when someone created a share with your reverse share link.",