This connector sends an email when a clause is invoked.

See the reference documentation for Custom Actions for guidance on how to use this configuration definition.

In the sample below, replace <EMAIL>, <SUBJECT> and the value of "message" with your destination email address, message subject and message content respectively. The value of message can use variables from the response. Please be sure to use variables that correspond with the event or obligation emitted by your specific Smart Clause. View AP templates and their responses here.

  "$class": "",
  "contractId": metadata.contractId,
  "to": "<EMAIL>",
  "subject": "<SUBJECT>",
  "message": "The owed amount is" & event.amount.doubleValue & " " & event.amount.currencyCode