🛜修复字典获取没有使用索引的问题

This commit is contained in:
2024-07-03 23:01:43 +08:00
parent 38895a9d66
commit cc876f3dbe
3 changed files with 11 additions and 16 deletions

View File

@ -61,6 +61,8 @@ def send_emails(emails, sender_email, smtp_server, port, password, subject, body
use_tls (bool): 是否使用 TLS 加密,默认为 True。
"""
for email in emails:
print(f'正在发送邮件到 {email}')
print(f'---------------------------\n邮件主题: {subject}\n邮件内容: {body}\n发件人: {sender_email}\n---------------------------')
email_sender(email, sender_email, smtp_server, port, password, subject, body, use_tls)