@@ -12,9 +12,12 @@ 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(
|
||||||
"mail.invario-software.de",
|
cfg.EMAIL_SMTP_HOST,
|
||||||
587,
|
cfg.EMAIL_SMTP_PORT,
|
||||||
timeout=cfg.EMAIL_TIMEOUT_SECONDS,
|
timeout=cfg.EMAIL_TIMEOUT_SECONDS,
|
||||||
)
|
)
|
||||||
smtp.ehlo()
|
smtp.ehlo()
|
||||||
|
|||||||
Reference in New Issue
Block a user