Django email

Adds steps to test Django email functionality.
Also adds a couple of utility functions for tests.