email agent uses config and logging