Added config vars to email script