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 Type
    Method
    Description
    void
    sendMessage(T message, String referenceId)
    Sends the message object.
  • Method Details

    • sendMessage

      void sendMessage(T message, String referenceId) throws Exception
      Sends the message object.
      Parameters:
      message - - the message object
      referenceId - - a reference ID for the message
      Throws:
      Exception - - when sending fails