Skip to content
Advertisement

How to send Email in Java without DB setting [closed]

I have set up a simpleMailMessage service following the codes and information given from spring-email from baeldung

After setting my configuration, maven dependency, and service, I am wondering How do I call the method without database source?

is it to create a controller to call this sending method from service in localhost:8080?

If I make my questions and situations unclear, please let me know. Thank you.

Advertisement

Answer

I think you are referring to Server as DB.

You do need a Server to handle RestAPI requests that send the actual email. But you definitely do not need a Database, unless you need to store some data.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement