Send the mail that Auth0 writes to your users, such as verification emails, password resets and passwordless codes, through Sendora’s SMTP. Auth0’s built-in email provider is meant for testing only, and sends at most 10 emails a minute.
A Sendora account. A test server works from the moment the account exists. A live server sends once your account is approved. The account starts on Free, within the limits that Account › Usage in the dashboard shows.
Access to the DNS of the domain that Auth0’s mail comes from.
Access to your tenant’s settings in Auth0’s dashboard.
Add the domain that Auth0’s mail comes from under Domains, and add the two DNS records it shows, as Domains explains.
Create a test server under Servers › New server, with Testserver ticked, and create a key on its API keys tab. The key starts with sk_test_. A test server takes mail as a live server does and delivers none of it.
In Auth0’s dashboard, open Branding, then Email Provider. Switch on Use my own email provider, choose SMTP, and enter Sendora’s values:
Field
Value
From
An address on your verified domain, such as no-reply@example.se
Host
smtp.sendora.se
Port
465
Username
The server key
Password
The server key
Port 465 encrypts the connection from the first byte. Port 587 works too, with STARTTLS. Sendora needs no list of Auth0’s IP addresses, since it takes connections from any address.
Click Save.
Click Send Test Email.
Find the message on the server’s Messages tab under Servers.
Once your account is approved, create a key on your live server’s API keys tab, such as the default server that signup made. Put it in Username and Password in place of the test key, and click Save.
An email template under Branding › Email Templates may set its own From Address, in place of the provider’s From. Leave it empty, or use an address on your verified domain. Passwordless email has a From of its own, under Authentication › Passwordless › Email, which needs an address on your verified domain too.
When Sendora refuses a message, Auth0 logs a Failed Sending Notification event under Monitoring › Logs, with Sendora’s reply. 535 5.7.8 means the key is wrong or revoked. 550 5.7.1 means the From domain is not verified, or that a live server’s account is not yet approved. 451 4.7.0 means that a limit is reached, such as Free’s daily limit. 550 5.1.1 means the recipient’s address is on the suppression list, for example after a hard bounce. SMTP replies lists every reply.
On the server’s API keys tab under Servers, Test the setup shows each valid key’s latest sign-in and accepted message over SMTP. It also shows the key’s latest refusals, each with what to do. After Auth0 sends a message, click Check now.
# Auth0
Send Auth0's verification emails, password resets and passwordless codes through Sendora's SMTP.
Send the mail that Auth0 writes to your users, such as verification emails, password resets and passwordless codes, through Sendora's SMTP. Auth0's built-in email provider is meant for testing only, and sends at most 10 emails a minute.
## Before you start
- A Sendora account. A test server works from the moment the account exists. A live server sends once your account is approved. The account starts on Free, within the [limits](https://sendora.se/docs/limits#the-free-tier) that [Account › Usage](https://app.sendora.se/account/usage) in the dashboard shows.
- Access to the DNS of the domain that Auth0's mail comes from.
- Access to your tenant's settings in Auth0's dashboard.
## Set up Auth0
1. Add the domain that Auth0's mail comes from under [Domains](https://app.sendora.se/domains), and add the two DNS records it shows, as [Domains](https://sendora.se/docs/domains) explains.
2. Create a test server under [Servers › New server](https://app.sendora.se/servers/new), with **Testserver** ticked, and create a key on its **API keys** tab. The key starts with `sk_test_`. A [test server](https://sendora.se/docs/test-servers) takes mail as a live server does and delivers none of it.
3. In Auth0's dashboard, open **Branding**, then **Email Provider**. Switch on **Use my own email provider**, choose **SMTP**, and enter Sendora's values:
| Field | Value |
| -------- | ----------------------------------------------------------------- |
| From | An address on your verified domain, such as `no-reply@example.se` |
| Host | `smtp.sendora.se` |
| Port | `465` |
| Username | The server key |
| Password | The server key |
Port 465 encrypts the connection from the first byte. Port 587 works too, with STARTTLS. Sendora needs no list of Auth0's IP addresses, since it takes connections from any address.
4. Click **Save**.
5. Click **Send Test Email**.
6. Find the message on the server's **Messages** tab under [Servers](https://app.sendora.se/servers).
7. Once your account is approved, create a key on your live server's **API keys** tab, such as the default server that signup made. Put it in **Username** and **Password** in place of the test key, and click **Save**.
## The From address of each email
An email template under **Branding** › **Email Templates** may set its own **From Address**, in place of the provider's **From**. Leave it empty, or use an address on your verified domain. Passwordless email has a **From** of its own, under **Authentication** › **Passwordless** › **Email**, which needs an address on your verified domain too.
## If a message is refused
When Sendora refuses a message, Auth0 logs a **Failed Sending Notification** event under **Monitoring** › **Logs**, with Sendora's reply. `535 5.7.8` means the key is wrong or revoked. `550 5.7.1` means the From domain is not verified, or that a live server's account is not yet approved. `451 4.7.0` means that a limit is reached, such as Free's [daily limit](https://sendora.se/docs/limits#the-free-tier). `550 5.1.1` means the recipient's address is on the [suppression list](https://sendora.se/docs/suppressions), for example after a hard bounce. [SMTP replies](https://sendora.se/docs/smtp#smtp-replies) lists every reply.
## Test the setup
On the server's **API keys** tab under [Servers](https://app.sendora.se/servers), **Test the setup** shows each valid key's latest sign-in and accepted message over SMTP. It also shows the key's latest refusals, each with what to do. After Auth0 sends a message, click **Check now**.