added
HTML templates are now supported for batch sending transactional email
over 2 years ago by Sendinblue
You can now use your unique HTML code and edit it when sending transactional messages in batches.
Just edit the variable htmlContent
for each message version you want to create.
{
"sender":{
"email":"[email protected]",
"name":"Sendinblue"
},
"subject":"This is my default subject line",
"htmlContent":"<!DOCTYPE html><html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>",
"messageVersions":[
//Definition for Message Version 1
{
"to":[
{
"email":"[email protected]",
"name":"Bob Anderson"
},
{
"email":"[email protected]",
"name":"Anne Smith"
}
],
"htmlContent":"<!DOCTYPE html><html><body><h1>Modified header!</h1><p>This is still a paragraph</p></body></html>",
"subject":"We are happy to be working with you"
},
// Definition for Message Version 2
{
"to":[
{
"email":"[email protected]",
"name":"Jim Stevens"
},
{
"email":"[email protected]",
"name":"Mark Payton"
},
{
"email":"[email protected]",
"name":"Andrea Wallace"
}
]
}
]
}