From 59bfb8ea0f7bb31340a450cfb982219375783f26 Mon Sep 17 00:00:00 2001 From: anghunk Date: Mon, 19 Jan 2026 21:33:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(email):=20=E4=BF=AE=E6=AD=A3=E5=8F=91?= =?UTF-8?q?=E9=80=81=E8=AF=84=E8=AE=BA=E5=9B=9E=E5=A4=8D=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E7=9A=84=E9=82=AE=E4=BB=B6=E5=8F=82=E6=95=B0=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 邮件发送接口的参数格式不正确,导致无法正常发送通知。调整了`to`和`from`字段的格式以匹配邮件服务的要求。 --- cwd-comments-api/src/utils/email.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cwd-comments-api/src/utils/email.ts b/cwd-comments-api/src/utils/email.ts index 9f7bf42..6ba94e2 100644 --- a/cwd-comments-api/src/utils/email.ts +++ b/cwd-comments-api/src/utils/email.ts @@ -84,8 +84,8 @@ export async function sendCommentReplyNotification( } await env.SEND_EMAIL.send({ - to: [{ email: toEmail }], - from: { email: env.CF_FROM_EMAIL }, + to: [toEmail], + from: env.CF_FROM_EMAIL, subject: `评论回复 - ${postTitle}`, html });