mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
🐛 Add missing parameter when sending variables (Mailjet)
This commit is contained in:
parent
7f0f8deb6d
commit
fd72c0ece6
|
@ -31,9 +31,9 @@ export const emailOperations = [
|
|||
|
||||
export const emailFields = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* email:send */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* email:send */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'From Email',
|
||||
name: 'fromEmail',
|
||||
|
@ -258,9 +258,9 @@ export const emailFields = [
|
|||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* email:sendTemplate */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* email:sendTemplate */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'From Email',
|
||||
name: 'fromEmail',
|
||||
|
|
|
@ -128,6 +128,8 @@ export class Mailjet implements INodeType {
|
|||
for (const variable of variables) {
|
||||
//@ts-ignore
|
||||
body.Messages[0].Variables[variable.name] = variable.value;
|
||||
//@ts-ignore
|
||||
body.Messages[0].TemplateLanguage = true;
|
||||
}
|
||||
}
|
||||
if (htmlBody) {
|
||||
|
@ -200,6 +202,7 @@ export class Mailjet implements INodeType {
|
|||
Cc: [],
|
||||
Bcc: [],
|
||||
Variables: {},
|
||||
TemplateLanguage: false,
|
||||
TemplateID: templateId,
|
||||
},
|
||||
],
|
||||
|
@ -215,6 +218,8 @@ export class Mailjet implements INodeType {
|
|||
for (const variable of variables) {
|
||||
//@ts-ignore
|
||||
body.Messages[0].Variables[variable.name] = variable.value;
|
||||
//@ts-ignore
|
||||
body.Messages[0].TemplateLanguage = true;
|
||||
}
|
||||
}
|
||||
if (additionalFields.bccEmail) {
|
||||
|
|
Loading…
Reference in a new issue