Skip to content

Commit

Permalink
邮件报警兼容python 3.7等高版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris-code committed May 10, 2021
1 parent e71e53e commit b950eaa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions feapder/utils/email_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def __init__(self, username, password):

self.smtpserver = EmailSender.SMTPSERVER
self.sender = EmailSender.SENDER

self.smtp_client = smtplib.SMTP_SSL()
self.smtp_client = smtplib.SMTP_SSL(self.SMTPSERVER)

def __enter__(self):
self.login()
Expand Down

0 comments on commit b950eaa

Please sign in to comment.