From df8db1171ad4989807ae0fb485b04d94b2954130 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 26 Apr 2023 20:21:30 -0700 Subject: [PATCH] fix: style email with inline styles --- packages/backend/src/services/send-email.ts | 82 +++------------------ 1 file changed, 10 insertions(+), 72 deletions(-) diff --git a/packages/backend/src/services/send-email.ts b/packages/backend/src/services/send-email.ts index f24269d9be..7647b0db49 100644 --- a/packages/backend/src/services/send-email.ts +++ b/packages/backend/src/services/send-email.ts @@ -33,66 +33,6 @@ export async function sendEmail( } as any); try { - // TODO: htmlサニタイズ - const style = ` - ` const info = await transporter.sendMail({ from: meta.email!, to: to, @@ -103,25 +43,23 @@ export async function sendEmail( ${subject} - ${style} - - ${style} -
-
- -

${meta.name}

+ +
+
+ +

${meta.name}

-
-