Giter Site home page Giter Site logo

Comments (1)

spookylukey avatar spookylukey commented on June 24, 2024

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.

from django-mailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.