ソースを参照

Authentication is only applied when both the username and password have values. (#2937)

tags/0.6.0-preview-workflow.1
Leo Q 1年前
コミット
cc754122fc
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      api/libs/smtp.py

+ 1
- 1
api/libs/smtp.py ファイルの表示

@@ -16,7 +16,7 @@ class SMTPClient:
smtp = smtplib.SMTP(self.server, self.port)
if self._use_tls:
smtp.starttls()
if (self.username):
if self.username and self.password:
smtp.login(self.username, self.password)
msg = MIMEMultipart()
msg['Subject'] = mail['subject']

読み込み中…
キャンセル
保存