mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
⚡ 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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user