diff --git a/InvenTree/InvenTree/forms.py b/InvenTree/InvenTree/forms.py index eede6b8d32..dd0af9b6c3 100644 --- a/InvenTree/InvenTree/forms.py +++ b/InvenTree/InvenTree/forms.py @@ -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