feat: add CMS inquiries and group bookings

This commit is contained in:
2026-09-17 15:48:40 +02:00
parent 97dd32a2b4
commit a2b3e99174
28 changed files with 1200 additions and 45 deletions
+12 -2
View File
@@ -1,6 +1,16 @@
import { getMailFrom, getMailTransport } from "./transport";
export async function sendEmail(to: string, template: { subject: string; html: string }) {
export async function sendEmail(
to: string,
template: { subject: string; html: string },
options: { replyTo?: string } = {},
) {
const transport = getMailTransport();
await transport.sendMail({ from: getMailFrom(), to, subject: template.subject, html: template.html });
await transport.sendMail({
from: getMailFrom(),
to,
subject: template.subject,
html: template.html,
...(options.replyTo ? { replyTo: options.replyTo } : {}),
});
}