tasks.py: Check for correct mimetype before sending out mail