15 lines
No EOL
412 B
Python
15 lines
No EOL
412 B
Python
from core.classes.mail import SMTPMailProvider
|
|
|
|
import importlib
|
|
|
|
from django.conf import settings
|
|
|
|
providers = { "smtp": SMTPMailProvider }
|
|
|
|
for module in settings.EXPEPHALON_MODULES:
|
|
try:
|
|
mom = importlib.import_module(f"{module}.mail")
|
|
for name, provider in mom.MAILPROVIDERS.items():
|
|
providers[name] = provider
|
|
except (AttributeError, ModuleNotFoundError):
|
|
continue |