#93 Errors via mail

* configures server errors sending via mail
   * default for now is always 'ksp-servicestelle'
* includes improvements from #97
This commit is contained in:
2022-01-31 15:24:26 +01:00
parent 896ad55749
commit 0dbd4896f2
9 changed files with 14 additions and 46 deletions

View File

@@ -5,16 +5,12 @@ Contact: michel.peltriaux@sgdnord.rlp.de
Created on: 09.11.20
"""
import logging
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.utils.translation import gettext_lazy as _
from konova.sub_settings.django_settings import DEFAULT_FROM_EMAIL, EMAIL_REPLY_TO, SUPPORT_MAIL_RECIPIENT
logger = logging.getLogger(__name__)
class Mailer:
"""