EMAIL Dequeue

You may want to send messages to an email address or a list of email addresses. Platform supports EMAIL dequeue for this purpose.

As with File,SFTP and HTTP dequeuing, one can configure Platform to send to an EMAIL destination through the configuration of a MessageDestination.

A MessageDestination of DestinationType EMAIL is used to configure the final destination for a message being dequeued to email address(es). In order to deliver messages through email, we need emails, subject, message, and attachedFileName parameters.

<MessageDestination>
<ValueChainId>9123</ValueChainId>
<Name>outbox/Orders/EMAIL</Name>
<DestinationType>EMAIL</DestinationType>
<Config>{'emails': ['[email protected]','[email protected]'], 'subject':'%{Interface} %{Version} messages on %{CurDate}','message': 'Test Email body on %{CurDate}', 'attachedFileName':'%{FileName}.%{Timestamp}'}</Config>
</MessageDestination>
The Config is a JSON object containing:
  • emails (required) – List of email addresses in a JSON array

  • subject (optional) – Subject of the email. You can substitute %{Interface} , %{Version} and %{CurDate} (mm/dd/yy) macros within the subject.

  • message (optional) – Body of the email. You can substitute %{Interface} , %{Version} and %{CurDate} (mm/dd/yy) macros within the message.

  • attachedFileName (required) – Name of the attached file. You can substitute %{FileName} and %{Timestamp} macros within the subject and message section.