0

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?

Prem
  • 11
  • 5

1 Answers1

0

Instead of using configuration files, you can store the needed elements in a database and then customize it for each user.

Before sending an email, you retrieve the SMTP value filled for the current user and use it.

BenjaminD
  • 488
  • 3
  • 13