I want to add a name to my \"from\" field using the SendGrid API, but I do not know how to do this. I tried setting the \"from\" parameter in sendgrid.send
to <
Although the updated use cases don't include the from
key
https://github.com/sendgrid/sendgrid-nodejs/blob/master/docs/use-cases/flexible-address-fields.md
This one worked for me
to: 'user@userdomain.com',
from: {
name: 'Sender'
email: 'me@mydomain.com',
},
subject: 'Hello World',
html: `Hello World
`
});