Chapter 3. Mailing with Spring Mail

A mailing API is a part of all modern web applications. End users prefer to be intimated by mail on details of the transactions performed with the application.

Spring has made it easier to provide mailing abilities to any Java application. In this chapter, we shall see how we can use the Spring mail template to e-mail recipients. In the previous chapter, we used messaging as the middleware to store messages in the queue, and now in this chapter, we shall demonstrate using Spring mailing template configurations using different scenarios.

Spring mail message handling process

The following diagram depicts the flow of a Spring mail message process. With this, we can clearly understand the process of sending mail using ...

Get Mastering Spring Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.