Package org.salespointframework.support
Class RecordingMailSender
java.lang.Object
org.salespointframework.support.ConsoleWritingMailSender
org.salespointframework.support.RecordingMailSender
- All Implemented Interfaces:
MailSender
A
MailSender
implementation that allows looking up all SimpleMailMessage
s that have been sent. Will
also log the messages as they are received for sending. The required setup steps can be found in
ConsoleWritingMailSender
's JavaDoc.- Since:
- 6.3.1
- Author:
- Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns allSimpleMailMessage
s that have been recorded so far.void
send
(SimpleMailMessage simpleMessage) Methods inherited from class org.salespointframework.support.ConsoleWritingMailSender
send
-
Constructor Details
-
RecordingMailSender
public RecordingMailSender()
-
-
Method Details
-
send
- Specified by:
send
in interfaceMailSender
- Overrides:
send
in classConsoleWritingMailSender
- Throws:
MailException
-
getSentMessages
Returns allSimpleMailMessage
s that have been recorded so far.- Returns:
- will never be null.
-