Initial commit: ANOUMA website with Payload CMS, WebRTC meetings, and booking system
- 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
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { getMailFrom, getMailTransport } from "./transport";
|
||||
import { renderReminderEmailHtml, renderReminderEmailText, type ReminderEmailData } from "./reminderTemplate";
|
||||
|
||||
export async function sendReminderEmail(to: string, data: ReminderEmailData) {
|
||||
const transport = getMailTransport();
|
||||
await transport.sendMail({
|
||||
from: getMailFrom(),
|
||||
to,
|
||||
subject: `Dein Online-Termin bei ANOUMA beginnt in ${data.minutesBefore} Minuten`,
|
||||
html: renderReminderEmailHtml(data),
|
||||
text: renderReminderEmailText(data),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user