메일관리 기능 구현 완료

This commit is contained in:
leeheejin
2025-10-13 15:17:34 +09:00
parent b4c5be1f17
commit 95c98cbda3
40 changed files with 2227 additions and 4150 deletions

View File

@@ -19,6 +19,9 @@ export class MailSendSimpleController {
// FormData에서 JSON 문자열 파싱
const accountId = req.body.accountId;
const templateId = req.body.templateId;
const modifiedTemplateComponents = req.body.modifiedTemplateComponents
? JSON.parse(req.body.modifiedTemplateComponents)
: undefined; // 🎯 수정된 템플릿 컴포넌트
const to = req.body.to ? JSON.parse(req.body.to) : [];
const cc = req.body.cc ? JSON.parse(req.body.cc) : undefined;
const bcc = req.body.bcc ? JSON.parse(req.body.bcc) : undefined;
@@ -90,6 +93,7 @@ export class MailSendSimpleController {
const result = await mailSendSimpleService.sendMail({
accountId,
templateId,
modifiedTemplateComponents, // 🎯 수정된 템플릿 컴포넌트 전달
to,
cc,
bcc,