Skip to content

Commit

Permalink
邮件短消息显示标题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Oct 3, 2023
1 parent 8c09c55 commit 74f42d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arknights_mower/utils/solver.py
Original file line number Diff line number Diff line change
@@ -424,6 +424,9 @@ def send_email(self, body='', subject='', subtype='plain', retry_times=3):
if 'mail_enable' in self.email_config.keys() and self.email_config['mail_enable'] == 0:
logger.info('邮件功能未开启')
return

if subtype == 'plain' and subject == '':
subject = body

msg = MIMEMultipart()
msg.attach(MIMEText(body, subtype))

0 comments on commit 74f42d4

Please sign in to comment.