Commits

Luke Plant committed 0af70aa

Increased usefulness of staging mail backend

  • Participants
  • Parent commits 836aab2
  • Branches bookings

Comments (0)

Files changed (1)

File 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: