Skip to content

Create Payment Confirmation Email Template using HTML and fs module#45

Description

@abhishek-nexgen-dev

馃摑 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions