refactor(chore): replace logo from attachments by url

This commit is contained in:
Julien Oculi 2024-04-15 10:41:46 +02:00
parent eadb397847
commit 188ca13c2c
2 changed files with 2 additions and 9 deletions

View file

@ -13,13 +13,6 @@ export async function send(mail: Mail) {
subject: mail.subject, subject: mail.subject,
text, text,
html, html,
attachments: [ attachments: mail.options.attachments.map((path) => ({ path })),
{
cid: 'cohabit_logo.svg',
path: 'https://cohabit.fr/images/logo.svg',
filename: 'cohabit_logo.svg',
},
...mail.options.attachments.map((path) => ({ path })),
],
}) })
} }

View file

@ -31,7 +31,7 @@ function Welcome(
<Section> <Section>
<Heading as='h1' style={headingCss}> <Heading as='h1' style={headingCss}>
Bienvenue au<Img Bienvenue au<Img
src='cid:cohabit_logo.svg' src='https://cohabit.fr/images/logo.svg'
alt='FabLab Cohabit' alt='FabLab Cohabit'
style={imgCss} style={imgCss}
/> />