feat(chore): attach cohabit logo to mails
This commit is contained in:
parent
44a9090a39
commit
40d57ce880
|
@ -13,6 +13,13 @@ export async function send(mail: Mail) {
|
||||||
subject: mail.subject,
|
subject: mail.subject,
|
||||||
text,
|
text,
|
||||||
html,
|
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 })),
|
||||||
|
],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue