🔀 Merge branch 'neumann-d-patch-1'

This commit is contained in:
Jan Oberhauser 2020-02-25 11:42:37 +01:00
commit e51237a0b9

View file

@ -33,7 +33,7 @@ export class EmailSend implements INodeType {
}
],
properties: [
// TODO: Add cc, bcc and choice for text as text or html (maybe also from name)
// TODO: Add choice for text as text or html (maybe also from name)
{
displayName: 'From Email',
name: 'fromEmail',
@ -57,10 +57,17 @@ export class EmailSend implements INodeType {
name: 'ccEmail',
type: 'string',
default: '',
required: false,
placeholder: 'cc@example.com',
description: 'Email address of CC recipient.',
},
{
displayName: 'BCC Email',
name: 'bccEmail',
type: 'string',
default: '',
placeholder: 'bcc@example.com',
description: 'Email address of BCC recipient.',
},
{
displayName: 'Subject',
name: 'subject',
@ -123,6 +130,7 @@ export class EmailSend implements INodeType {
const fromEmail = this.getNodeParameter('fromEmail') as string;
const toEmail = this.getNodeParameter('toEmail') as string;
const ccEmail = this.getNodeParameter('ccEmail') as string;
const bccEmail = this.getNodeParameter('bccEmail') as string;
const subject = this.getNodeParameter('subject') as string;
const text = this.getNodeParameter('text') as string;
const html = this.getNodeParameter('html') as string;
@ -162,6 +170,7 @@ export class EmailSend implements INodeType {
from: fromEmail,
to: toEmail,
cc: ccEmail,
bcc: bccEmail,
subject,
text,
html,