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. Supabase doesn’t offer this view.
Set up Cocoonmail SMTP in Supabase
Go to your Authentication settings in Supabase (Project Settings -> Authentication) to tell Supabase to send emails using Cocoonmail’ SMTP service. Scroll down and toggle the Enable Custom SMTP option on. In the Sender details section, you will need to enter some values into the “Sender email” and “Sender name” fields. However, these values will always be overwritten by the values set in your Cocoonmail templates from the next step. 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 |

Create Transactional emails in Cocoonmail
Next, create new transactional emails for each of the emails listed in Supabase (Authentication -> Email Templates). 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.

Supabase email | Variables available in Cocoonmail |
---|---|
Confirm signup | confirmationUrl |
Invite user | confirmationUrl |
Magic Link | confirmationUrl |
Change Email Address | confirmationUrl , oldEmail , newEmail |
Reset Password | confirmationUrl |

Configure email templates in Supabase
The final step is to make sure your emails in Supabase are configured to send the correct data to Cocoonmail.Make sure you set up at least the Confirm signup and Magic Link templates in Supabase, otherwise emails will not be sent.
{{ .Email }}
and {{ .ConfirmationURL }}
Supabase variables were added.

To view all sends of your transactional emails, click through to the email from the Transactional page in Cocoonmail, where you’ll find the Metrics page containing a table showing all sends and some statistics.
Important notes
- You need to add a template in Cocoonmail and set up the email in Supabase for at least the Confirm signup and Magic Link templates.
- The subject in Supabase templates is always overwritten by the subject added to the corresponding template in Cocoonmail.
- The sender name and sender email configured in your Supabase SMTP settings are always overwritten by the sender details added to your templates in Cocoonmail.
- Any Supabase email not set up with the correct API-like payload will fail to send.