From de8e7406aba012e4a274c93a5d8cf50b975d518e Mon Sep 17 00:00:00 2001 From: Kevin Craine Date: Mon, 24 Oct 2022 15:25:13 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Display=20email=20with=20html=20?= =?UTF-8?q?body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/src/functions/auth.ts | 2 +- api/src/services/users/users.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/functions/auth.ts b/api/src/functions/auth.ts index e195941..d21d47a 100644 --- a/api/src/functions/auth.ts +++ b/api/src/functions/auth.ts @@ -132,7 +132,7 @@ export const handler = async (event, context) => { sendEmail({ to: user.email, subject: verificationEmail.subject(), - text: verificationEmail.htmlBody(user), + html: verificationEmail.htmlBody(user), }) return user }, diff --git a/api/src/services/users/users.ts b/api/src/services/users/users.ts index be1e214..7bd48d9 100644 --- a/api/src/services/users/users.ts +++ b/api/src/services/users/users.ts @@ -91,7 +91,7 @@ export const verifyReset: MutationResolvers['verifyReset'] = async ({ sendEmail({ to: user.email, subject: verificationEmail.subject(), - text: verificationEmail.htmlBody(user), + html: verificationEmail.htmlBody(user), }) } return email