fix(email): 修正发送评论回复通知的邮件参数格式

邮件发送接口的参数格式不正确,导致无法正常发送通知。调整了`to`和`from`字段的格式以匹配邮件服务的要求。
This commit is contained in:
anghunk
2026-01-19 21:33:56 +08:00
parent 5eee1ed8dc
commit 59bfb8ea0f

View File

@@ -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
});