create add to email function