Download the JavaMail library and include it in my project first by creating it in the Netbeans and then adding it to the project, but when I am going to create the mail sending function it does not recognize some libraries. These are what Netbeans recognizes me:
import org.springframework.mail.MailException;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessagePreparator;
And these are the ones that do not:
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
When I check email it does not exist inside javax. It seemed to me that I was wrongly including the library to the project but I did a search of how it is done and apparently it was doing well.