finished email generation