Added the first functionalities for sending a mail