--- description: This guide explains how you can set up email provider --- # Setup email provider Aidbox supports different email API services and SMTP protocol. ## Smartbox administrator UI Use Smartbox administrator UI to set up email provider. ### Setup provider details To set up email provider details: 1. Click the `Settings` link in the header 2. Click the `Email provider` tab 3. Choose the provider type (`SMTP` or `mailgun`) 4. Populate provider details 5. Press the `Update email provider` button ### Check if provider works To check provider works: 1. Press the `Send test email` button 2. Enter your email address 3. Press the `Ok` button {% hint style="info" %} If you receive the test email message, the provider works {% endhint %} ## How to set up `mailgun` Add the lines below to the `.env` file. ``` # Mailgun BOX_PROVIDER_DEFAULT_TYPE=mailgun BOX_PROVIDER_DEFAULT_FROM= BOX_PROVIDER_DEFAULT_USERNAME= BOX_PROVIDER_DEFAULT_PASSWORD= BOX_PROVIDER_DEFAULT_URL= ``` ## How to set up `Postmark` Add the lines below to the `.env` file. ``` # Postmark BOX_PROVIDER_DEFAULT_TYPE=postmark BOX_PROVIDER_DEFAULT_FROM= BOX_PROVIDER_DEFAULT_API__KEY= ``` ## How to set up `SMTP` Add the lines below to the `.env` file. ``` # SMTP BOX_PROVIDER_DEFAULT_TYPE=smtp BOX_PROVIDER_DEFAULT_SSL=true # if your SMTP supports SSL BOX_PROVIDER_DEFAULT_TLS=true # if your SMTP supports TLS BOX_PROVIDER_DEFAULT_HOST= BOX_PROVIDER_DEFAULT_PORT= BOX_PROVIDER_DEFAULT_FROM= BOX_PROVIDER_DEFAULT_USERNAME= BOX_PROVIDER_DEFAULT_PASSWORD= ```