1
More control over design
You can use Cocoonmail’ design editor to create (and then easily edit) beautiful transactional emails instead of having to code them with HTML.
2
Better visibility of sent emails
You get full visibility on which emails are being sent, when, and to whom in your Cocoonmail account. Auth0 doesn’t offer this view.
Set up Cocoonmail SMTP in Auth0
Go to Branding -> Email Provider in your Auth0 dashboard. Scroll down and click on SMTP Provider. In the SMTP Provider Settings section below, enter a value into the “From” field. This value will always be overwritten by the values set in your Cocoonmail templates from the next step, so it can be anything. In the SMTP Provider Settings section enter the following data:Field | Value |
---|---|
Host | smtp.cocoonmail.com |
Port number | 587 |
Username | cocoonmail |
Password | An API key copied from your API settings in Cocoonmail |

The Send Test Email button here will not work due to how the Cocoonmail SMTP system works. You can test your connection in a later step.
Create Transactional emails in Cocoonmail
Next, create new transactional emails for the emails you are sending from Auth0. Go to Branding -> Email Templates to view the full list. Read our guide for creating transactional emails In Cocoonmail, go to the Transactional page and click New. Alternatively, you can select one of our many ready-made templates from the Templates page.

Configure email templates in Auth0
The final step is to make sure your emails in Auth0 are configured to send the correct data to Cocoonmail.Make sure you set up at least the Verification Email (using Link) or Verification Email (using code) templates in Auth0. Enable other emails based on your user flows.
Make sure that each template you want to use in Auth0 has the Status field enabled.
{{ url }}
.
Here is an example “Verification Email (using Link)” email template. This payload was copied from the template’s Publish page in Cocoonmail, then the {{ user.email }}
and {{ url }}
Auth0 variables were added.

Important notes
- The subject in Auth0 templates is always overwritten by the subject added to the corresponding template in Cocoonmail.
- The sender email configured in your Auth0 SMTP settings is always overwritten by the “From” address added to your templates in Cocoonmail.
- Any enabled Auth0 template not set up with the correct API-like payload will fail to send.