This commit is contained in:
David Arranz 2025-02-20 18:08:58 +01:00
parent b2ea336635
commit 387520045f

View File

@ -41,13 +41,14 @@ function sendEmailTransactional(header, body) {
sendSmtpEmail.to = [{ name: header.name, email: header.to }];
if (header.bcc) { sendSmtpEmail.bcc = [{ name: header.bccName, email: header.bcc }] };
console.log('+++++++++++++++++++++++++++++');
console.log(body.Variables);
console.log('+++++++++++++++++++++++++++++');
sendSmtpEmail.subject = header.subject;
sendSmtpEmail.params = body.Variables;
console.log('+++++++++++++++++++++++++++++');
console.log(sendSmtpEmail.params);
console.log('+++++++++++++++++++++++++++++');
apiInstance.sendTransacEmail(sendSmtpEmail).then(function (data) {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, function (error) {