added Mail function