mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 00:44:18 -04:00
Updated dependencies. Moved email assets from base64 to attachments to improve support in Gmail. Implemented custom email branding support. Implemented custom print branding support. Moved image assets to email/kiosk directory. Implemented kiosk dark mode logo support. Updated README.md
This commit is contained in:
@@ -75,10 +75,21 @@ module.exports = {
|
||||
voucher,
|
||||
unifiSsid: variables.unifiSsid,
|
||||
unifiSsidPassword: variables.unifiSsidPassword,
|
||||
qr: await qr(),
|
||||
timeConvert: time,
|
||||
bytesConvert: bytes
|
||||
})
|
||||
}),
|
||||
attachments: [
|
||||
{
|
||||
filename: 'logo.png',
|
||||
content: fs.existsSync('/email/logo.png') ? fs.readFileSync(`/email/logo.png`) : fs.readFileSync(`${process.cwd()}/public/images/email/logo.png`),
|
||||
cid: 'logo@unifi-voucher-site.com'
|
||||
},
|
||||
{
|
||||
filename: 'qr.png',
|
||||
content: await qr(true),
|
||||
cid: 'qr@unifi-voucher-site.com'
|
||||
}
|
||||
]
|
||||
}).catch((e) => {
|
||||
log.error(`[Mail] Error when sending mail`);
|
||||
log.error(e);
|
||||
|
||||
Reference in New Issue
Block a user