I have a small application using Spring Boot, REST (SoapUI). The task is to send an email. At the moment the email is not sent and any error message appears in the Eclipse console. I am afraid that the session is not properly linked.
This is the relevant parts of the code on the component sending the email:
private MailSender mailSender;
message = new SimpleMailMessage();
I am using my local Tomcat, in the server.xml
In the applicationContext.xml of Spring I added the code
Any idea about how the config shuols be fixed or where the gap is please?
Did you on purpose leave out your user and paswoord and changed the email to firstname.lastname@example.org?
Cause if that the actual confiig, that won't work?
You also need a valid host, your tomcat isn't a mailserver
for example put this in your application.properties:
It's good to be able to use someting, it's better to understand how it works.