Closed Dallas62 closed 6 years ago
Hi @Dallas62
emailTo
expects an array of email addresses & not string.
So code should be like:
const apiInstance = new SibApiV3Sdk.SMTPApi();
apiInstance.sendTemplate(123, {
emailTo: ['adress@domain.tld']
})
Refer https://developers.sendinblue.com/v3.0/reference#sendtemplate-1
Thanks
Thanks! Will check this ASAP.
An idea: Make pre-validation of type or transformation into array might be done to avoid confusion.
Hi!
I can not send mail with SendTemplate:
Result:
Of course, I provide a valid mail when I run the process.