Interface OutgoingMessageHandler


public interface OutgoingMessageHandler
This handler provides functionality to append a Message to the central outgoing message folder to be sent by a specific Account. The appended message will be sent asynchronously by the novomind iAGENT core process. The OutgoingMessageHandler is injectable in the novomind iAGENT routing process and also in the novomind iAGENT Desk- and core process.
Since:
12.9
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Represents options to send a message
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.mail.Message
    sendMessage(jakarta.mail.Message message, Account account, OutgoingMessageHandler.SendOptions sendOptions)
    Appends a Message to the central outgoing message folder to be sent by a specific Account.
  • Method Details

    • sendMessage

      jakarta.mail.Message sendMessage(jakarta.mail.Message message, Account account, OutgoingMessageHandler.SendOptions sendOptions) throws jakarta.mail.MessagingException, ValidationException
      Appends a Message to the central outgoing message folder to be sent by a specific Account. Please note that the specified Account to send the message must be able to send messages Account.isSendAllowed(). Otherwise a ValidationException will be thrown. The message will be sent asynchronously by the novomind iAGENT core process. In case of a PermanentMessagingException during the send operation the message remains flagged on the central outgoing folder and requires manual action by a supervisor.
      Parameters:
      message - the Message to be sent
      account - the Account to be used to send the message
      sendOptions - the OutgoingMessageHandler.SendOptions for the message
      Returns:
      the message after it has been successfully appended to the outgoing message folder
      Throws:
      jakarta.mail.MessagingException - in case of invalid message
      ValidationException - in case of invalid or inappropriate account
      Since:
      12.9