mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update emailApi.ts to use sender name as from field (#4584)
This commit is contained in:
parent
7563205c24
commit
86454a55f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 || '',
|
||||
|
|
|
|||
Loading…
Reference in a new issue