> For the complete documentation index, see [llms.txt](https://docs.selfuel.digital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.selfuel.digital/stream-processing-with-cortex/applications/connector-nodes-cluster/sink-nodes/email-sink.md).

# Email Sink

## Step 4 - Account Credentials

### Email Account Username

Refers to the username as the email address. For example,  ‘[username@gmail.com](mailto:wso2mail@gmail.com)’.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Email Account Password

Represents the password associated with the email account.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Email Sender Address

Email address that will be used to send emails.

{% hint style="info" %}
Difference between Email Account Username and Email Sender Address is XXX.
{% endhint %}

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### SMTP Server Hostname

Name of the SMTP server that will be used for sending emails. For Gmail accounts, it is typically '[smtp.gmail.com](http://smtp.gmail.com)'.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Secure Connection Option

This option determines if a secure connection should be used. Setting this to ON means that a secure connection will be established through port 493 which is a secure connection.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
| ON            |                    |

### Connection Port Number

This refers to the port number used to establish the connection with the SMTP server.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
| 465           | STRING             |

### ...X

<div data-full-width="true"><figure><img src="https://1184018446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUPFHdhLeYWovl0V5F9g%2Fuploads%2FDrmKxRuOIHl84deGyWun%2Fsink_email_step4_mac.png?alt=media&amp;token=c1aa3cba-249e-49f3-85c1-50b2c6592d06" alt=""><figcaption></figcaption></figure></div>

## Step 5 - Email Configuration and Recipients

### Email Content Type

Indicates the content type of the email, which can be either 'Plain Text' or 'HTML'.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
| Plain Text    |                    |

### Email Body

Using the Attributes below; create an Email Body that will be sent to the Recepient Addresses.

{% hint style="info" %}
The Attributes can be used as the variables in the Email Body. Different from ordinary texts; Attributes should be used in the format '`{{attribute_1}}`', '`{{attribute_5}}'`, etc.
{% endhint %}

***e.g.*** The total number of sales in the last 24 hour is `{{total_sales_1_day}}`. This automatic mail is  sent at `{{current_datetime}}`.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Email Subject

Subject line of the emails to be sent.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Recipient Addresses

Enter the email addresses of the main recipients. Multiple addresses can be added by separating them with commas (',').

***e.g.*** <recipient_1@gmail.com>, <recipient_5@somedomain.edu>, <recipient_12@otherdomain.com>

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Carbon Copy Addresses

Enter email addresses of those you want to receive a carbon copy (CC) of the email. Multiple addresses can be added by separating them with commas (',').

***e.g.*** <recipient_1@gmail.com>, <recipient_5@somedomain.edu>, <recipient_12@otherdomain.com>

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Blind Carbon Copy Addresses

Enter email addresses of those you want to receive a blind carbon copy (BCC) of the email. Multiple addresses can be added by separating them with commas (',').

***e.g.*** <recipient_1@gmail.com>, <recipient_5@somedomain.edu>, <recipient_12@otherdomain.com>

| Default Value | Possible Data Type |
| ------------- | ------------------ |
|               | STRING             |

### Email Attachments

Add file paths for any attachments you want to include in your email. These must be absolute paths and can be for files or directories. If it's a directory, all first-level files in that directory will be attached.

{% hint style="danger" %}
Beware that if **the path is to a directory**, **all the files located at the first level** (i.e., not within another sub directory) are attached.
{% endhint %}

### ...X

<div data-full-width="true"><figure><img src="https://1184018446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUPFHdhLeYWovl0V5F9g%2Fuploads%2F9haGefdgXbuPTJNBYeyj%2Fsink_email_step5_mac.png?alt=media&amp;token=420c3fae-3c35-4d7a-b81f-5d320867ec61" alt=""><figcaption></figcaption></figure></div>

## Step 6 - Authentication and Security

### Authentication Command Option

Controls whether the 'AUTH' command should be used for user authentication. Setting it to 'true' enables authentication via the 'AUTH' command.

| Default Value | Possible Data Type |
| ------------- | ------------------ |
| ON            |                    |

<div data-full-width="true"><figure><img src="https://1184018446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUPFHdhLeYWovl0V5F9g%2Fuploads%2FLSzZQW3BdEHd2Z5pFag0%2Fsink_email_step6_mac.png?alt=media&amp;token=6350aa36-cb76-4a82-9f0b-c440ad289b49" alt=""><figcaption></figcaption></figure></div>

## Step 7 - Preview

In Preview Step, you're provided with a concise summary of all the changes you've made to the Email Sink Node. This step is pivotal for reviewing and ensuring that your configurations are as intended before completing node setup.

* **Viewing Configurations**: Preview Step presents a consolidated view of your node setup.
* **Saving and Exiting**: Use the Complete button to save your changes and exit the node and return back to Canvas.
* **Revisions**: Use the Back button to return to any Step of modify node setup.

The Preview Step offers a user-friendly summary to manage and finalize node settings in Cortex.
