feat: Add certificate email sending feature

- Create certificate-email.service.js with HTML email template
- Add beautiful gradient email template with course details
- Support PDF attachment via JMAP
- Add POST /prilohy/:prilohaId/send-email endpoint
- Add sendCertificateEmail controller function

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
richardtekula
2026-01-30 08:22:22 +01:00
parent 09f4c72acb
commit 6eced7263a
3 changed files with 553 additions and 0 deletions

View File

@@ -174,4 +174,10 @@ router.post(
aiKurzyController.generateCertificate
);
router.post(
'/prilohy/:prilohaId/send-email',
validateParams(prilohaIdSchema),
aiKurzyController.sendCertificateEmail
);
export default router;