fix config init for mailSender