Added notify by email funtion