Move some email sending into emails.py