Exemple #1
0
 def db_email_to_django_message(email):
     message = load_class(email.email_class)()
     message.__dict__ = json.loads(email.email_dump)
     return message
 def __init__(self, *args, **kwargs):
     inner_backend = None
     for backend_class in settings.EMAIL_BACKEND_STACK:
         inner_backend = load_class(backend_class)(*args, inner_backend=inner_backend, **kwargs)
     super(StackedEmailBackend, self).__init__(*args, inner_backend=inner_backend, **kwargs)
Exemple #3
0
 def __init__(self, inner_backend_settings_property):
     class_name = getattr(settings, inner_backend_settings_property, 'django.core.mail.backends.smtp.EmailBackend')
     logger.debug('inner backend: ' + class_name)
     if class_name:
         self.setInnerBackend( load_class(class_name)() )
 def set_inner_backend_class(self, backend_class):
     self.set_inner_backend(load_class(backend_class)())