From 40d57ce880a7434ff19b1b8df11c48dcae55a823 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 11 Apr 2024 16:51:05 +0200 Subject: [PATCH] feat(chore): attach cohabit logo to mails --- src/send.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/send.ts b/src/send.ts index 316215b..f4d3e8e 100644 --- a/src/send.ts +++ b/src/send.ts @@ -13,6 +13,13 @@ export async function send(mail: Mail) { subject: mail.subject, text, html, - attachments: mail.options.attachments.map((path) => ({ path })), + attachments: [ + { + cid: 'cohabit_logo.svg', + path: 'https://cohabit.fr/images/logo.svg', + filename: 'cohabit_logo.svg', + }, + ...mail.options.attachments.map((path) => ({ path })), + ], }) }