Description
Add support for sending custom HTML-formatted email templates through the API while maintaining the Mikatech branding and footer.
Acceptance Criteria
Implementation Details
- Create a new endpoint:
POST /email/send-template
- Request body should accept:
to: recipient email address
subject: email subject
htmlTemplate: custom HTML template
variables: object with template variables
websiteName: the website name for the footer
- Inject Mikatech logo and footer into the template automatically
- Validate and sanitize HTML before rendering
- Return appropriate success/error responses
Testing
Description
Add support for sending custom HTML-formatted email templates through the API while maintaining the Mikatech branding and footer.
Acceptance Criteria
Implementation Details
POST /email/send-templateto: recipient email addresssubject: email subjecthtmlTemplate: custom HTML templatevariables: object with template variableswebsiteName: the website name for the footerTesting