소스 검색

Set SMTP timeout

pull/40/head
Sindre Stephansen 5 년 전
부모
커밋
d5b155a348
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/app/views/utils.py

+ 1
- 1
src/app/views/utils.py 파일 보기

@@ -26,7 +26,7 @@ def sendmail(subject, message, to_name, to_email, from_name="Beelance", from_ema
logging.exception("Exception when sending email")


def get_smtp(timeout=3000):
def get_smtp(timeout=2):
smtp_server = os.getenv("smtp_server", default="molde.idi.ntnu.no") + ":25"
return smtplib.SMTP(smtp_server, timeout=timeout)



불러오는 중...
취소
저장