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