Added mail.py

A `ValueError` raised by line 28 will halt the program and prevent lines 29 - 35 from protecting against `ValueErrors`.