21👍
✅
Maybe I should actually read the documentation.
The outbox attribute is a special attribute that is created only when the locmem e-mail backend is used. It doesn’t normally exist as part of the django.core.mail module and you can’t import it directly.
https://docs.djangoproject.com/en/dev/topics/testing/tools/#email-services
Source:stackexchange.com