Chapter 13. Mail Support in Spring

Many applications make use of electronic mail (e-mail). E-mail is a perfect medium for a wide variety of different tasks, such as sending notification, marketing materials, and periodic reports about application usage and in some cases, facilitating application integration. The Java world boasts a large selection of e-mail solutions, the most well known being JavaMail from Sun. While JavaMail is exceptionally powerful, it is quite a complex API and even sending simple e-mail with it is not a trivial task. The JavaMail API is hard to mock or stub, mainly because of its use of static methods and final classes. On top of that, its heavy dependency on system properties makes testing application code that directly ...

Get Pro Spring 2.5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.