configuration based smtp config