feat: Send email confirmation with PDF attachment upon successful order
All checks were successful
Staging Build / build (push) Successful in 2m34s

This commit is contained in:
DanielS
2026-06-25 02:47:03 +02:00
parent 7cad819df8
commit b2656345e8
2 changed files with 63 additions and 0 deletions

View File

@@ -14,11 +14,17 @@ export async function sendMail({
subject,
text,
html,
attachments,
}: {
to: string;
subject: string;
text: string;
html?: string;
attachments?: {
filename: string;
content: Buffer | string;
contentType?: string;
}[];
}) {
// Query custom SMTP settings from database
const supabase = createAdminClient();
@@ -58,6 +64,7 @@ export async function sendMail({
subject,
text,
html,
attachments,
});
return info;