# Setup SMTP provider Aidbox allows you to configure SMTP email provider to manage your email communications. {% hint style="info" %} To enable SMTP please specify optional environment variable [**AIDBOX\_BASE\_URL**](../../../reference/all-settings.md#web.base-url)**.** {% endhint %} ## Configuring Mailgun See [Configuring Mailgun Integration Tutorial](../../../tutorials/integration-toolkit-tutorials/mailgun-integration-tutorial.md). ## Configuring Postmark See [Configuring Postmark Tutorial](../../../tutorials/integration-toolkit-tutorials/postmark-integration-tutorial.md). ## 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": "user@example.com", "username": "user@example.com", "password": "password" } } } ``` Note that you should reference to \ in the Notification resource: ``` PUT /Notification/notification-1 provider: 'yourProviderId' providerData: to: recipient@example.com subject: My subject of the message template: id: notificationTemplateId resourceType: NotificationTemplate payload: foo: bar: zaz ```