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