added mail functionality
mail funcionality working great