I have implemented a spring boot app to send email using JavaMail API with pre-defined SMTP values. Now, I want to change this to a global configuration. So, that a person using any email service like MailChimp, SendGrid,... can configure their properties and send emails using that.
I'm not sure how to achieve this. Anyone pls let me know?