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
    • Method Detail

      • sendMessage

        javax.mail.Message sendMessage​(javax.mail.Message message,
                                       Account account,
                                       OutgoingMessageHandler.SendOptions sendOptions)
                                throws javax.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:
        javax.mail.MessagingException - in case of invalid message
        ValidationException - in case of invalid or inappropriate account
        Since:
        12.9