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

This connection configuration sends an email when a clause is invoked.

In the sample below, replace <CONTRACT_ID>, with the value from the URL of your contract. Choose everything after the last forward slash, e.g. https://hub.clause.io/contract/5b0596ca176453597c2faad6

Similarly replace <EMAIL>, <SUBJECT> and <MESSAGE> with your destination email address, message subject and message content respectively.

{
  "$class": "io.clause.outbound.physical.alerts.email.EmailMessage",
  "contractId": "<CONTRACT_ID>",
  "to": "<EMAIL>",
  "subject": "<SUBJECT>",
  "message": "<MESSAGE>"
}