diff --git a/lib/mailer.ts b/lib/mailer.ts
index a147791..09acd77 100644
--- a/lib/mailer.ts
+++ b/lib/mailer.ts
@@ -209,3 +209,86 @@ export async function sendeKontaktEmail(
`Kontaktanfrage ${data.name}`
);
}
+
+export async function sendeFlyerBenachrichtigung(
+ data: { email: string }
+): Promise<{ sent: boolean; queued: boolean }> {
+ const html = `
+
+
+
+
+
+
MBO Tech IT
+
FamilyGuard Flyer-Download
+
+
+
Neuer Flyer-Download
+
+ Ein Interessent hat den MBO FamilyGuard Flyer angefordert.
+
+
+
+
+
MBO Tech IT · ${process.env.APP_URL ?? "https://mbo-tech-it.de"}
+
+
+`;
+
+ return sendWithFallback(
+ {
+ from: `"MBO Tech IT" <${process.env.SMTP_FROM}>`,
+ to: "jonny@mbo-tech-it.de",
+ replyTo: data.email,
+ subject: `Neuer FamilyGuard-Flyer-Download: ${data.email}`,
+ text: `Neuer Flyer-Download\n\nE-Mail: ${data.email}`,
+ html,
+ },
+ `FamilyGuard-Flyer-Benachrichtigung ${data.email}`
+ );
+}
+
+export async function sendeFlyerLink(data: { email: string }): Promise {
+ const downloadLink = `${process.env.APP_URL ?? "https://mbo-tech-it.de"}/downloads/MBO_FamilyGuard_Flyer_01.pdf`;
+ const html = `
+
+
+
+
+
+
MBO Tech IT
+
MBO FamilyGuard
+
+
+
Ihr FamilyGuard-Flyer
+
+ Vielen Dank für Ihr Interesse an MBO FamilyGuard. Den Flyer mit allen Details
+ finden Sie hier zum Download:
+
+
+ Flyer herunterladen
+
+
+ Fragen? Rufen Sie uns an: +49 171 9345193
+
+
+
+
MBO Tech IT · ${process.env.APP_URL ?? "https://mbo-tech-it.de"}
+
+
+`;
+
+ await sendWithFallback(
+ {
+ from: `"MBO Tech IT" <${process.env.SMTP_FROM}>`,
+ to: data.email,
+ subject: "Ihr MBO FamilyGuard Flyer",
+ text: `Hallo,\n\nvielen Dank für Ihr Interesse an MBO FamilyGuard. Den Flyer finden Sie hier:\n${downloadLink}\n\nMBO Tech IT`,
+ html,
+ },
+ `FamilyGuard-Flyer-Link ${data.email}`
+ );
+}