How to send transactional email with Cocoonmail.
Create transactional emails
Send with the API
name
in the example above). Read on for more information about data variables.
PasswordResetLink
, you can use it in your MJML like this:
name
and resetUrl
.
resetUrl
as the button’s link in our example:
If you want to write the tags manually in your content, you can use our dynamic tag syntax. To add a reset URL you can write a tag like this:
>
button to view all fields and then click the data variable icon.
To send data to these fields, simply include the data variables in your API call as normal.
""
will also cause the email to fail.LastLoggedIn
and lastLoggedIn
are different variables).string
or number
.@example.com
or @test.com
domains. Using these won’t actually send any emails but everything else works just the same as if email was sent, and avoids affecting your domain reputation while you test your integration.x-webdoc://....
https://
or http://
and they should work fine.
message
property that will give you more information about the error. Here are common reasons that the API might return with a 400-level error:
transactionalId
, email
, or dataVariables
.