Email function by Team 7