Autowired JavaEmailSender and added upload functionality