Commits

Luke Plant committed 0af70aa

Increased usefulness of staging mail backend

Comments (0)

Files changed (1)

cciw/mail/backend.py

         connection = get_connection(backend="django.core.mail.backends.smtp.EmailBackend")
         num_sent = 0
         for email in email_messages:
-            if "booking" in email.subject:
+            if "booking" in email.subject or "Internal Server Error" in email.subject:
                 email.connection = connection
                 email.send()
             else: