Email Providers integration
Last updated
Was this helpful?
Last updated
Was this helpful?
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 and configuration via environment variables.
The email can be sent using POST /Notification/<notification-id>/$send
request.
Explained in the following page:
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.
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: