diff --git a/src/send-feed.ts b/src/send-feed.ts index fe79e0b..da3fd7d 100644 --- a/src/send-feed.ts +++ b/src/send-feed.ts @@ -70,7 +70,10 @@ class SendFeed { Sendgrid.setApiKey(process.env.SENDGRID_API_KEY || ""); await Sendgrid.send({ to: this.user.email, - from: (process.env.FROM || ""), + from: { + email: (process.env.FROM || ""), + name: process.env.FROM_NAME || 'Synthesis', + }, subject: "Your personalized source for informative and inspiring content", text: "Your daily dose of knowledge, tailored for you: Stay informed effortlessly with your personal digest.", html: message, diff --git a/src/send-welcome-email.ts b/src/send-welcome-email.ts index a067cb5..1fd1ab3 100644 --- a/src/send-welcome-email.ts +++ b/src/send-welcome-email.ts @@ -17,7 +17,10 @@ const sendWelcomeEmail = async (message: Array) => { Sendgrid.setApiKey(process.env.SENDGRID_API_KEY || ""); await Sendgrid.send({ to: email, - from: (process.env.FROM || ""), + from: { + email: (process.env.FROM || ""), + name: process.env.FROM_NAME || 'Synthesis', + }, subject: "Welcome to Synthesis", text: "Your daily dose of knowledge, tailored for you: Stay informed effortlessly with your personal digest.", html: message