Adding email function and sending on trip