O'Reilly logo

Mastering Spring Application Development by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interfaces and classes used for sending mails with Spring

The package org.springframework.mail is used for mail configuration in the spring application.

Interfaces and classes used for sending mails with Spring

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required