django_auxilium.callback_mail.filebased module

class django_auxilium.callback_mail.filebased.CallbackEmailBackend(*args, **kwargs)[source]

Bases: django_auxilium.callback_mail.base.BaseCallbackEmailBackendMixin, django.core.mail.backends.filebased.EmailBackend

Custom file-based email backend which sends signals on progress events of sending messages.

send_messages(email_messages)[source]

Custom implementation of sending messages which also calls mail signals.

Unfortunately vanilla Django implementation does not provide enough hooks for when messages are sent hence this method needs to duplicate the whole method.