Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(email): support attachments on sendEmail
Richie McIlroy63c2d3f2c09f
diff --git a/packages/database/emails/config.ts b/packages/database/emails/config.tsindex ac63f9681..a5145c0d7 100644--- a/packages/database/emails/config.ts+++ b/packages/database/emails/config.ts@@ -16,6 +16,7 @@ export const sendEmail = async ({replyTo,fromOverride,idempotencyKey,+ attachments,}: {email: string;subject: string;@@ -27,6 +28,11 @@ export const sendEmail = async ({replyTo?: string;fromOverride?: string;idempotencyKey?: string;+ attachments?: {+ filename: string;+ content: Buffer | string;+ contentType?: string;+ }[];}) => {const r = resend();if (!r) {@@ -51,6 +57,7 @@ export const sendEmail = async ({scheduledAt,cc: test ? undefined : cc,replyTo: replyTo,+ attachments,},idempotencyKey ? { idempotencyKey } : undefined,);