diff --git a/src/lib/services/email-service.ts b/src/lib/services/email-service.ts index 825fc21ac8..9d9a374f1b 100644 --- a/src/lib/services/email-service.ts +++ b/src/lib/services/email-service.ts @@ -162,10 +162,7 @@ export class EmailService { templateName: string, format: TemplateFormat, ): string { - let topPath = path.resolve('mailtemplates'); - if (!existsSync(topPath)) { - topPath = path.resolve('dist', 'mailtemplates'); - } + const topPath = path.resolve(__dirname, '../../mailtemplates'); const template = path.join( topPath, templateName,