- Next.js 16 App Router site with the ANOUMA design system - Payload CMS (PostgreSQL) for offers, events, posts and page content - WebRTC video-call system with custom signaling server - SMTP email reminders and booking-request notifications - Customer accounts, calendar-based availability, and booking workflow
7 lines
300 B
TypeScript
7 lines
300 B
TypeScript
import { getMailFrom, getMailTransport } from "./transport";
|
|
|
|
export async function sendEmail(to: string, template: { subject: string; html: string }) {
|
|
const transport = getMailTransport();
|
|
await transport.sendMail({ from: getMailFrom(), to, subject: template.subject, html: template.html });
|
|
}
|