Email Providers integration
Aidbox supports sending emails through using Notification
, NotificationTemplate
, and, optionally, AidboxConfig
resources.
It is possible to setup any SMTP provider using AidboxConfig
resource, also there's Postmark and Mailgun configuration via environment variables.
Sending email
The email can be sent using POST /Notification/<notification-id>/$send
request.
Setup SMTP provider
Explained in the following page:
Setup SMTP providerNotification resource
The Notification resource is used to send notifications using a specified provider. Simplest notification can be created like this:
It is also possible to create a predefined notification template. The resource supports dynamic content by including a payload that is merged into the template.
NotificationTemplate resource
The NotificationTemplate resource is used to store and manage the body of email messages. This allows for templated messages to be dynamically generated using placeholders that can be replaced with actual values at runtime.
NotificationTemplate example:
See also
Email Providers referenceLast updated
Was this helpful?