org.springframework.mail is used for mail configuration in the spring application.
The following are the three main interfaces that are used for sending mail:
MailSender: This interface is used to send simple mail messages.
JavaMailSender: This interface is a subinterface of the
MailSenderinterface and supports sending mail messages.
MimeMessagePreparator: This interface is a callback interface that supports the
JavaMailSenderinterface in the preparation of mail messages.
The following classes are used for sending mails using Spring:
SimpleMailMessage: This is a class which has properties ...