Skip to content

[BE-17] Add Booking Confirmation MJML email template and renderer #956

@devwums

Description

@devwums

Problem

No HTML email template exists for booking confirmations. Users receive plain-text emails with no branding, making them look untrustworthy and prone to landing in spam.

Proposed Solution

Create backend/cntr/booking-confirmation.template.mjml (the MJML source) and backend/cntr/booking-confirmation.util.ts (a function renderBookingConfirmationEmail(vars): string that compiles the template using the installed mjml package). Variables: memberName, workspaceName, startDate, endDate, totalAmountNaira, bookingReference. All implementation must live inside backend/cntr/.

Acceptance Criteria

  • MJML template at backend/cntr/booking-confirmation.template.mjml
  • Utility at backend/cntr/booking-confirmation.util.ts
  • Uses the mjml package (already in package.json)
  • Compiled HTML includes all 6 variables
  • Template uses ManageHub brand colour #0ea5e9 in the header
  • Unit test at backend/cntr/booking-confirmation.util.spec.ts verifying the function returns HTML containing each variable value

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions