How to send transactional email with Loops.
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
.
You can insert data variables into the text of the email with the Insert data variable button (see below) or by using the /
slash menu.
resetUrl
as the button’s link, click on the data variable icon (1), click the data variable (2) and then enter your data variable name into the Variable name field (3).
>
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.
""
(sending null
will not work).
LastLoggedIn
and lastLoggedIn
are different variables).string
or number
."addToAudience": true
to your payload.
@example.com
and @test.com
domains (for example [email protected]
and [email protected]
).
Everything will work as normal (e.g. you will receive success responses from the API), but no emails will be sent to @example.com
or @test.com
email addresses, making this a good way to test transactional emails without affecting your sending domain’s reputation.
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
.