Email function added(work on device)