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']: