feat: Send email confirmation with PDF attachment upon successful order
All checks were successful
Staging Build / build (push) Successful in 2m34s
All checks were successful
Staging Build / build (push) Successful in 2m34s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user