From 8c8c708ce743a5bff36346fb01458d226e6c0b31 Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Thu, 11 Dec 2025 23:31:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dsend=5Femail=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用正确的参数名: to_email, body, html_body 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- email_service.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/email_service.py b/email_service.py index ecdb661..a2e08c9 100644 --- a/email_service.py +++ b/email_service.py @@ -2070,10 +2070,12 @@ def send_batch_task_complete_email( }) result = send_email( - to=email, + to_email=email, subject=f'【自动化学习】定时任务完成 - {schedule_name}', - html_content=html_content, - attachments=attachments + body='', + html_body=html_content, + attachments=attachments, + email_type='batch_task_complete' ) if result['success']: