From e048d951fc5c967486d1e48430d0afc4f93e8960 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 26 Apr 2023 20:04:58 -0700 Subject: [PATCH] try to fix email style... --- packages/backend/src/services/send-email.ts | 25 ++++++++++++--------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/packages/backend/src/services/send-email.ts b/packages/backend/src/services/send-email.ts index 4c442a168c..f24269d9be 100644 --- a/packages/backend/src/services/send-email.ts +++ b/packages/backend/src/services/send-email.ts @@ -34,16 +34,7 @@ export async function sendEmail( try { // TODO: htmlサニタイズ - const info = await transporter.sendMail({ - from: meta.email!, - to: to, - subject: subject, - text: text, - html: ` - - - - ${subject} + const style = ` + ` + const info = await transporter.sendMail({ + from: meta.email!, + to: to, + subject: subject, + text: text, + html: ` + + + + ${subject} + ${style} + ${style}