Update mail.py

Main file: it contains the source code