mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
Add CC property to email
This commit is contained in:
parent
b7eab083e8
commit
b453c05f7d
|
@ -51,6 +51,15 @@ export class EmailSend implements INodeType {
|
||||||
placeholder: 'info@example.com',
|
placeholder: 'info@example.com',
|
||||||
description: 'Email address of the recipient.',
|
description: 'Email address of the recipient.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'CC Email',
|
||||||
|
name: 'ccEmail',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
required: false,
|
||||||
|
placeholder: 'cc@example.com',
|
||||||
|
description: 'Email address of CC recipient.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Subject',
|
displayName: 'Subject',
|
||||||
name: 'subject',
|
name: 'subject',
|
||||||
|
@ -96,6 +105,7 @@ export class EmailSend implements INodeType {
|
||||||
|
|
||||||
const fromEmail = this.getNodeParameter('fromEmail') as string;
|
const fromEmail = this.getNodeParameter('fromEmail') as string;
|
||||||
const toEmail = this.getNodeParameter('toEmail') as string;
|
const toEmail = this.getNodeParameter('toEmail') as string;
|
||||||
|
const ccEmail = this.getNodeParameter('ccEmail') as string;
|
||||||
const subject = this.getNodeParameter('subject') as string;
|
const subject = this.getNodeParameter('subject') as string;
|
||||||
const text = this.getNodeParameter('text') as string;
|
const text = this.getNodeParameter('text') as string;
|
||||||
const html = this.getNodeParameter('html') as string;
|
const html = this.getNodeParameter('html') as string;
|
||||||
|
@ -122,6 +132,7 @@ export class EmailSend implements INodeType {
|
||||||
const mailOptions = {
|
const mailOptions = {
|
||||||
from: fromEmail,
|
from: fromEmail,
|
||||||
to: toEmail,
|
to: toEmail,
|
||||||
|
cc: ccEmail,
|
||||||
subject,
|
subject,
|
||||||
text,
|
text,
|
||||||
html,
|
html,
|
||||||
|
|
Loading…
Reference in a new issue