Added email function and attach file to email