소스 검색

fixes #19634 (#20545)

tags/1.4.2
Anshuman Saini 5 달 전
부모
커밋
e40e9db39a
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      api/libs/smtp.py

+ 2
- 1
api/libs/smtp.py 파일 보기

@@ -28,7 +28,8 @@ class SMTPClient:
else:
smtp = smtplib.SMTP(self.server, self.port, timeout=10)

if self.username and self.password:
# Only authenticate if both username and password are non-empty
if self.username and self.password and self.username.strip() and self.password.strip():
smtp.login(self.username, self.password)

msg = MIMEMultipart()

Loading…
취소
저장