From c11498b201e8632ef3c3824b045175bfdf225f7c Mon Sep 17 00:00:00 2001 From: jly8866 <164473279@qq.com> Date: Thu, 6 Apr 2017 15:02:51 +0800 Subject: [PATCH] sendmail fix --- sql/sendmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/sendmail.py b/sql/sendmail.py index 4b9d1190..d97502d4 100644 --- a/sql/sendmail.py +++ b/sql/sendmail.py @@ -36,7 +36,8 @@ def _send(self, strTitle, strContent, listToAddr): # 收件人地址: msg['From'] = self._format_addr(self.MAIL_REVIEW_FROM_ADDR) - msg['To'] = self._format_addr(listToAddr) + #msg['To'] = self._format_addr(listToAddr) + msg['To'] = ','.join(listToAddr) msg['Subject'] = Header(strTitle, "utf-8").encode() server = smtplib.SMTP(self.MAIL_REVIEW_SMTP_SERVER, self.MAIL_REVIEW_SMTP_PORT) # SMTP协议默认端口是25