On Mon, Feb 22, 2010 at 12:48 PM, Mat Clayton <[email protected]> wrote:
> Any thoughts on this as a change to the Email Backend system in django?

I'm not sure why you'd need any changes to the backend system:
couldn't you easily create a composite backend class that tried to
send email through multiple backends? Here's my completely untested
stab at the problem::

    class IDontWanna(Exception):
        pass

    def composite_backends(*backends):
        class CompositeEmailBackend(object):
            def send_messages(self, messages):
                for backend in backends:
                    try:
                        backend.send_messages(messages)
                    except IDontWanna:
                        continue

    MyMultipleBackends = composite_backends(BackendOne(),
BackendTwo(), BackendThree())

Jacob

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to