Setup SMTP provider
Aidbox allows you to configure SMTP email provider to manage your email communications.
Configuring Mailgun
See Configuring Mailgun Integration Tutorial.
Configuring Postmark
See Configuring Postmark Tutorial.
Configuring other SMTP providers
Firstly, get your credentials from your provider:
host
port
from
username
password
Then, add your provider using AidboxConfig
resource:
PUT /AidboxConfig/config
content-type: application/json
accept: application/json
{
"provider": {
"yourProviderId": {
"type": "smtp",
"host": "smtp.example.com",
"port": 465,
// "ssl": true,
"tls": true,
"from": "[email protected]",
"username": "[email protected]",
"password": "password"
}
}
}
Note that you should reference to <yourProviderId> in the Notification resource:
PUT /Notification/notification-1
provider: 'yourProviderId'
providerData:
to: [email protected]
subject: My subject of the message
template:
id: notificationTemplateId
resourceType: NotificationTemplate
payload:
foo:
bar: zaz
Last updated
Was this helpful?