description |
---|
This guide explains how you can set up email provider |
Aidbox supports different email API services and SMTP protocol.
Use Smartbox administrator UI to set up email provider.
To set up email provider details:
- Click the
Settings
link in the header - Click the
Email provider
tab - Choose the provider type (
SMTP
ormailgun
) - Populate provider details
- Press the
Update email provider
button
To check provider works:
- Press the
Send test email
button - Enter your email address
- Press the
Ok
button
{% hint style="info" %} If you receive the test email message, the provider works {% endhint %}
Add the lines below to the .env
file.
# Mailgun
BOX_PROVIDER_DEFAULT_TYPE=mailgun
BOX_PROVIDER_DEFAULT_FROM=<YOUR_MAILGUN_FROM_EMAIL>
BOX_PROVIDER_DEFAULT_USERNAME=<YOUR_MAILGUN_USERNAME>
BOX_PROVIDER_DEFAULT_PASSWORD=<YOUR_MAILGUN_PASSWORD>
BOX_PROVIDER_DEFAULT_URL=<YOUR_MAILGUN_URL>
Add the lines below to the .env
file.
# Postmark
BOX_PROVIDER_DEFAULT_TYPE=postmark
BOX_PROVIDER_DEFAULT_FROM=<YOUR_POSTMARK_FROM>
BOX_PROVIDER_DEFAULT_API__KEY=<YOUR_POSTMARK_API_KEY>
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=<YOUR_SMTP_HOST>
BOX_PROVIDER_DEFAULT_PORT=<YOUR_SMTP_PORT>
BOX_PROVIDER_DEFAULT_FROM=<YOUR_SMTP_FROM_EMAIL>
BOX_PROVIDER_DEFAULT_USERNAME=<YOUR_SMTP_USERNAME>
BOX_PROVIDER_DEFAULT_PASSWORD=<YOUR_SMTP_PASSWORD>