NexGenStudioDev / NexGenStudioDev/Ciitm-Backend

Create Payment Confirmation Email Template using HTML and fs module

Open
#45 6 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.