Update emailApi.ts to use sender name as from field (#4584)

This commit is contained in:
andrew-craig 2025-06-09 22:24:01 +10:00 committed by GitHub
parent 7563205c24
commit 86454a55f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ export const sendToEmailApi = (data: EmailContents) => {
export const convertToMailObject = (it: ParsedMail): EmailContents => {
return {
from: it.from?.value[0]?.address || '',
from: it.from?.value[0]?.name || it.from?.value[0]?.address || '',
to: env.omnivoreEmail,
subject: it.subject || '',
html: it.html || '',