2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

this was not meant to be submitted

This commit is contained in:
Matthias
2021-10-14 21:33:35 +02:00
parent 3a586af556
commit f95896e8ea

View File

@ -282,7 +282,7 @@ class CustomAccountAdapter(RegistratonMixin, DefaultAccountAdapter):
"""
def send_mail(self, template_prefix, email, context):
"""only send mail if backend configured"""
if settings.EMAIL_HOST:
if InvenTreeSetting.get_setting('EMAIL_HOST', None):
return super().send_mail(template_prefix, email, context)
return False