Send with SMTP
Send Cocoonmail emails over SMTP.
Sending emails with SMTP
You can send transactional emails over SMTP, meaning you can use Cocoonmail to power emails in platforms like Supabase and development tools and frameworks like Laravel, Rails, Django and Nodemailer.
How it works
The Cocoonmail way of sending emails over SMTP is a bit different from other services.
First, you create transactional email templates in the Cocoonmail editor for the emails you want to send (using our rich editor to create beautiful and easy-to-update emails rather than with coding them).
Then, when it comes to sending emails, instead of the content of an email, you send an API-like request body like this:
This JSON needs to be converted to a string and then sent as the email body.
Cocoonmail takes the provided data and compiles an email using the template you specify in the transactionalId
value plus the provided dataVariables
, then sends the email to email
.
Every email sent using Cocoonmail’ SMTP service requires a transactional email to be set up in your Cocoonmail account. Note the transactionalId
value in the email payload.
SMTP Integrations Learn how to set up SMTP in platforms and developer tools.