fix: 修复send_email参数名错误
使用正确的参数名: to_email, body, html_body 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user