Outgoing Email via Webhooks
Email Configuration – Outgoing Webhook as of version 10.5
Last updated
Email Configuration – Outgoing Webhook as of version 10.5
Last updated
A “Webhook” protocol is available to select when creating a new outgoing email server.
Access Admin>System Administration>System>Email Settings
In the Outgoing Email section of the Email Settings window, click Add, to create a new server. To modify an existing configuration, highlight the row and click Open. Here, you can also test the configuration.
Select the 'Webhook' Protocol from the list. If the Webhook protocol is not listed, please contact Alemba Support for assistance to add the protocol.
Configure the Webhook widget:
Payload URL – This is the webhook endpoint. E.g. the endpoint of the Azure Logic App.
Secret – This is an optional parameter which will be passed within the webhook request header. It 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.
Create Logic App with an 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.