Allow Gmail node to send messages formatted as HTML (#1285)

* Allowing Gmail node to send messages formatted as HTML

* Improving message field description

* Fixing lint issues

* Adding missing trailing comma

*  Small improvements to GMail-Node

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Omar Ajoue
2021-01-07 11:58:28 +01:00
committed by GitHub
parent 9b6f0ee3ee
commit 143c8bd326
4 changed files with 98 additions and 5 deletions

View File

@@ -125,6 +125,46 @@ export const messageFields = [
placeholder: 'Hello World!',
description: 'The message subject.',
},
{
displayName: 'HTML',
name: 'includeHtml',
type: 'boolean',
displayOptions: {
show: {
resource: [
'message',
],
operation: [
'send',
'reply',
],
},
},
default: false,
description: 'Switch ON if the message should also be included as HTML.',
},
{
displayName: 'HTML Message',
name: 'htmlMessage',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
includeHtml: [
true,
],
resource: [
'message',
],
operation: [
'reply',
'send',
],
},
},
description: 'The HTML message body.',
},
{
displayName: 'Message',
name: 'message',
@@ -142,8 +182,7 @@ export const messageFields = [
],
},
},
placeholder: 'Hello World!',
description: 'The message body. This can be in HTML.',
description: 'Plain text message body.',
},
{
displayName: 'To Email',