update invite center staff

This commit is contained in:
2024-10-27 19:47:50 +07:00
parent a5e9ad5ac1
commit ef89372e8c
10 changed files with 52 additions and 24 deletions

View File

@@ -28,13 +28,15 @@ import { PugAdapter } from '@nestjs-modules/mailer/dist/adapters/pug.adapter';
defaults: {
from: process.env.MAILU_FROM,
},
// template: {
// dir: path.join(__dirname, 'templates'),
// adapter: new PugAdapter(),
// options: {
// strict: true,
// },
// },
template: {
dir: path.join(__dirname, 'templates'),
adapter: new PugAdapter({
inlineCssEnabled: true,
}),
options: {
strict: true,
},
},
}),
}),
OpenaiModule,

View File

@@ -21,7 +21,7 @@ export class MailService {
const result = await this.mailerService.sendMail({
to,
subject,
text: mailContent ?? text,
text: mailContent ?? text,
});
Logger.log(result, 'MailService');
} catch (error) {
@@ -33,7 +33,7 @@ export class MailService {
to: string,
subject: string,
template: string,
context: User,
context: any,
) {
try {
const result = await this.mailerService.sendMail({

View File

@@ -2,7 +2,7 @@ doctype html
html
head
meta(charset="UTF-8")
title Thư mời làm việc từ Trung tâm [center_name]
title Thư mời làm việc từ Trung tâm #{center_name}
style.
body {
font-family: Arial, sans-serif;
@@ -59,12 +59,12 @@ html
body
.container
.header
h1 Thư mời làm việc từ Trung tâm [center_name]
h1 Thư mời làm việc từ Trung tâm #{center_name}
.content
p Chào bạn,
p Chúng tôi rất vui mừng thông báo rằng bạn đã được mời làm nhân viên tại trung tâm [center_name].
p Chúng tôi rất vui mừng thông báo rằng bạn đã được mời làm nhân viên tại trung tâm #{center_name}.
p Để tiếp tục quá trình ứng tuyển, vui lòng nhấn vào nút dưới đây để truy cập vào trang nộp resume của bạn.
a.button(href="http://localhost:3000/upload-cv?centerId=[center_id]") Nộp Resume
a.button(href=invite_url) Nộp Resume
p Nếu bạn có bất kỳ thắc mắc nào, đừng ngần ngại liên hệ với chúng tôi.
.footer
p Trân trọng,