fix mail not using new Config