Added mail to funtion to email address