Added emailUser function