You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've recently started using this package and implemented on top of it the possibility to specify an alternative email server as backup in case the main sending mechanism fails.
After reading this PR I wanted to check with you first if it might be of use for the package to have this addition. The commit is this one, the idea is basically set up two additional settings variables: MAILER_FALLBACK_EMAIL_BACKEND and EMAIL_FALLBACK_CONFIG which, if present, are used in case the main sending mechanism fails.
If it makes an useful addition let me know and I'll send a pull request.
The text was updated successfully, but these errors were encountered:
As before, I think this is best handled by a backend that implements the "fallback strategy". So you have:
django_mailer, which provides a mail backend that saves things to the DB for later sending
and requires a single other backend to actually do the sending
a "fallback strategy" backend that is either hardcoded to use 2 different backends, or could be configured to use a list of other backends.
you then point MAILER_EMAIL_BACKEND at your "fallback strategy" backend
Structured this way, you can compose the behaviours you want very nicely, without having to tie any of these together. So, for example, your "fallback strategy" backend could be used without django-mailer at all.
If there is some reason this won't work, please let me know.
Hi!
We've recently started using this package and implemented on top of it the possibility to specify an alternative email server as backup in case the main sending mechanism fails.
After reading this PR I wanted to check with you first if it might be of use for the package to have this addition. The commit is this one, the idea is basically set up two additional settings variables: MAILER_FALLBACK_EMAIL_BACKEND and EMAIL_FALLBACK_CONFIG which, if present, are used in case the main sending mechanism fails.
If it makes an useful addition let me know and I'll send a pull request.
The text was updated successfully, but these errors were encountered: