mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
add bcc field to EmailSend
This commit is contained in:
parent
effe90a0be
commit
7b8ea51e54
|
@ -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',
|
||||
|
@ -61,6 +61,15 @@ export class EmailSend implements INodeType {
|
|||
placeholder: 'cc@example.com',
|
||||
description: 'Email address of CC recipient.',
|
||||
},
|
||||
{
|
||||
displayName: 'BCC Email',
|
||||
name: 'bccEmail',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: false,
|
||||
placeholder: 'bcc@example.com',
|
||||
description: 'Email address of BCC recipient.',
|
||||
},
|
||||
{
|
||||
displayName: 'Subject',
|
||||
name: 'subject',
|
||||
|
@ -123,6 +132,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 +172,7 @@ export class EmailSend implements INodeType {
|
|||
from: fromEmail,
|
||||
to: toEmail,
|
||||
cc: ccEmail,
|
||||
bcc: bccEmail,
|
||||
subject,
|
||||
text,
|
||||
html,
|
||||
|
|
Loading…
Reference in a new issue