This is a bit of a workaround, but you can combine different emails into a single request using the X-SMTPAPI header substitutionproperty . In your body of the message, specify only the replacement token, for example. . Then pass your actual content in the header, for example.%content%
{
"to": [
"john.doe@gmail.com",
"jane.doe@hotmail.com"
],
"sub": {
"%content%": [
"Here is the content for the email to john.doe",
"And this is some different content for jane.doe"
]
}
}
bwest source
share