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.