refactor(chore): replace logo from attachments by url
This commit is contained in:
parent
eadb397847
commit
188ca13c2c
|
@ -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 })),
|
|
||||||
],
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue