diff --git a/api/src/services/mail/index.ts b/api/src/services/mail/index.ts index f82349d89d..cad440908b 100644 --- a/api/src/services/mail/index.ts +++ b/api/src/services/mail/index.ts @@ -48,13 +48,13 @@ export class MailService { const { template, ...emailOptions } = options; let { html } = options; - const from = options.from || (env.EMAIL_FROM as string); + const defaultTemplateData = await this.getDefaultTemplateData(); + + const from = `${defaultTemplateData.projectName} <${options.from || (env.EMAIL_FROM as string)}>`; if (template) { let templateData = template.data; - const defaultTemplateData = await this.getDefaultTemplateData(); - templateData = { ...defaultTemplateData, ...templateData, diff --git a/api/src/services/mail/templates/base.liquid b/api/src/services/mail/templates/base.liquid index 40f0a2b870..c396183ddc 100644 --- a/api/src/services/mail/templates/base.liquid +++ b/api/src/services/mail/templates/base.liquid @@ -1,95 +1,152 @@ - - - + +
- - - -
-
- Click to reset your password + Reset Your Password
Important: This link will expire in 24 hours.
+
Thank you, - Hello. You have been invited to join {{ projectName }}. Please click the button below to accept this invitation and join the project: + You have been invited to join {{ projectName }}. Please click the button below to accept this invitation and join the project: - Join {{ projectName }} + Join {{ projectName }}
- Thank You, |