NexGenStudioDev / NexGenStudioDev/Ciitm-Backend
Create Payment Confirmation Email Template using HTML and fs module
Open
@inky-penky is already working on this.
Since Jul 26, 2025.
API
backend
enhancement
good first issue
jest
onlydust-wave
testing
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
📝 Description:
Implement an email template for payment confirmation. The HTML template should be styled and include all relevant payment details. The backend will use Node.js and the fs module to read this template and inject dynamic data into it before sending via email (e.g., using Nodemailer).
📌 Tasks:
- Create a responsive and styled HTML email template paymentEmail.html
Should include the following dynamic placeholders:
{{studentName}}{{studentEmail}}{{Unique_id}}{{amountPaid}}{{discount}}{{dueFee}}{{paymentDate}}{{paymentMethod}}
📧 Email Template Utility
This module enables rendering and testing of dynamic HTML email templates using Node.js.
- Reads HTML templates from the /templates directory
- Replaces placeholder values dynamically
- Exposes a test endpoint (/test-payment-email) for previewing the final HTML
- Integrates with Nodemailer to send the rendered email
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.