-
Book Overview & Buying
-
Table Of Contents
Mastering Spring Application Development
By :
The package 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 MailSender interface and supports sending mail messages.
MimeMessagePreparator: This interface is a callback interface that supports the JavaMailSender interface in the preparation of mail messages.
The following classes are used for sending mails using Spring:
SimpleMailMessage: This is a class which has properties such as to, from, cc, bcc, sentDate, and many others. The SimpleMailMessage interface sends mail with MailSenderImp classes.

JavaMailSenderImpl: This class is an implementation class of the JavaMailSender interface.

MimeMessageHelper: This class helps with preparing MIME messages.
Change the font size
Change margin width
Change background colour