Package rs.mail.queue
Interface MailSender<T>
- Type Parameters:
T- the type of email object this sender handles.
- All Known Implementing Classes:
MessageMailSender,SimpleJavaMailSender
public interface MailSender<T>
A helper interface that actually will send e-mails.
- Author:
- ralph
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(T message, String referenceId) Sends the message object.
-
Method Details
-
sendMessage
Sends the message object.- Parameters:
message- - the message objectreferenceId- - a reference ID for the message- Throws:
Exception- - when sending fails
-