Service Layer low complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Next.js API route handler that triggers a transactional confirmation email to the prospect immediately after a successful booking form save. Constructs an HTML email template with plain-text fallback containing the organization name, contact details, and a clear next-steps message. Integrates with a transactional email provider (Resend, SendGrid, or Postmark) and relies on verified SPF/DKIM DNS records for deliverability.

Feature: Booking Confirmation

booking-email-service

Responsibilities

  • Send transactional HTML confirmation email with plain-text fallback to the prospect
  • Populate email template with submitted organization name, contact details, and next-steps copy
  • Invoke transactional email provider API on successful booking save
  • Handle delivery errors gracefully without blocking the confirmation page render

Interfaces

sendConfirmationEmail(booking: BookingFormData): Promise<void>
buildEmailHtml(booking: BookingFormData): string
buildEmailText(booking: BookingFormData): string