fixed email to work with passed in goal content