feat: styling email template

This commit is contained in:
Abdalhamid Alhamad
2025-04-06 13:33:57 +03:00
parent a3f88c774c
commit ffca6996fd
8 changed files with 157 additions and 28 deletions
+8 -1
View File
@@ -1,7 +1,6 @@
import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';
import { ConfigService } from '@nestjs/config';
import path from 'path';
export function buildMailerOptions(config: ConfigService) {
return {
transport: {
@@ -20,5 +19,13 @@ export function buildMailerOptions(config: ConfigService) {
strict: true,
},
},
options: {
partials: {
dir: path.join(__dirname, '../../common/modules/notification/templates', 'partials'),
options: {
strict: true,
},
},
},
};
}