Added spring bean code to manage mail