From 74f42d4e16109fc301db786536919d65f83776c5 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Tue, 3 Oct 2023 23:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E7=9F=AD=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/utils/solver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arknights_mower/utils/solver.py b/arknights_mower/utils/solver.py index 45d26fa0d..3b6922682 100644 --- a/arknights_mower/utils/solver.py +++ b/arknights_mower/utils/solver.py @@ -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))