changes
This commit is contained in:
@@ -12,12 +12,9 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def _build_smtp_client():
|
def _build_smtp_client():
|
||||||
if not cfg.EMAIL_SMTP_HOST:
|
|
||||||
raise RuntimeError('EMAIL_SMTP_HOST ist nicht konfiguriert')
|
|
||||||
|
|
||||||
smtp = smtplib.SMTP(
|
smtp = smtplib.SMTP(
|
||||||
cfg.EMAIL_SMTP_HOST,
|
"mail.invario-software.de",
|
||||||
cfg.EMAIL_SMTP_PORT,
|
587,
|
||||||
timeout=cfg.EMAIL_TIMEOUT_SECONDS,
|
timeout=cfg.EMAIL_TIMEOUT_SECONDS,
|
||||||
)
|
)
|
||||||
smtp.ehlo()
|
smtp.ehlo()
|
||||||
|
|||||||
Reference in New Issue
Block a user