From 3860d41d737d56a616e3a8c61a90d3ec956b89cd Mon Sep 17 00:00:00 2001 From: pemontto <939704+pemontto@users.noreply.github.com> Date: Mon, 21 Aug 2023 10:49:33 +0100 Subject: [PATCH] feat(Send Email Node): Add support for sending text and html email simultaneously (#6978) --- .../nodes-base/nodes/EmailSend/v2/send.operation.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/nodes-base/nodes/EmailSend/v2/send.operation.ts b/packages/nodes-base/nodes/EmailSend/v2/send.operation.ts index 3a80e306c6..8b40d51746 100644 --- a/packages/nodes-base/nodes/EmailSend/v2/send.operation.ts +++ b/packages/nodes-base/nodes/EmailSend/v2/send.operation.ts @@ -56,6 +56,10 @@ const properties: INodeProperties[] = [ name: 'HTML', value: 'html', }, + { + name: 'Both', + value: 'both', + }, ], default: 'text', }, @@ -70,7 +74,7 @@ const properties: INodeProperties[] = [ description: 'Plain text message of email', displayOptions: { show: { - emailFormat: ['text'], + emailFormat: ['text', 'both'], }, }, }, @@ -85,7 +89,7 @@ const properties: INodeProperties[] = [ description: 'HTML text message of email', displayOptions: { show: { - emailFormat: ['html'], + emailFormat: ['html', 'both'], }, }, }, @@ -208,11 +212,11 @@ export async function execute(this: IExecuteFunctions): Promise