Skip to content

Commit

Permalink
sendmail fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jly8866 committed Apr 6, 2017
1 parent e2bec3e commit c11498b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/sendmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c11498b

Please sign in to comment.