Outgoing Email via Web Hooks
Email Configuration – Outgoing Webhook as of version 10.5
Email Configuration – Outgoing Webhook as of version 10.5
A new “Webhook” protocol is available to select when creating a new outgoing email server:
Webhook widget appears and has the following fields:
Payload URL – This is the webhook endpoint. E.g. the endpoint of the Azure Logic App.
Secret – Optional parameter which will be passed within the webhook request header. Can be used for extra security at the webhook endpoint.
When emails are sent, they will appear as recent deliveries. You can check whether they were successful or not. You can also redeliver previous deliveries.
Logic App Configuration
Create Logic App with a HTTP Trigger.
Paste the following into the Request Body JSON Schema field of the trigger:
3. Add an “Initialize variable” action where the variable name is attachment and the type is array:
4. Add a “For each” action which will loop through the Attachments from the trigger and will append the FileData and FileName to the attachment array:
5. Add a “Send an email (V2)” action. Configure the connection details to the email server and fill it out as per this screenshot:
6. Add a “Response” action to return a 200 status code and a message to say the email had been processed successfully.