# SMTP

<figure><img src="/files/wLblrzG0CYO1JfassmQd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/DJBDbcUOkbpUjpxzzePr" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1iE9chSCb9Q73NHt4cc3" alt=""><figcaption></figcaption></figure>

## Description       &#x20;

**What it does** This component allows you to automatically send email by connecting your email address.

The SMTP component has the identifier of smtp-**X**, where **X** represents the instance number of the SMTP component.

**When to use it?** Let's say you want to send automated welcome emails to new users who sign up for your service through a Diaflow workflow. You can use the SMTP node to automatically send personalized welcome emails to each new user as soon as they sign up.

## Component settings

| Parameter Name | Description                                                                                                                                              |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Credentials    | Select the credentials for connecting to the SMTP server.                                                                                                |
| To             | The recipient email address                                                                                                                              |
| Cc             | The email(s) address(es) to be copied                                                                                                                    |
| Object         | The subject of the email.                                                                                                                                |
| Message        | A comprehensive system for writing paragraphs, which allows you to add images, insert links, and modify your text with various fonts and writing styles. |
| Attachments    | Select and attach files to the email                                                                                                                     |

## Advanced configurations

The SMTP component has no advanced configurations.

## Use case

Here is a simple use case of the SMTP component, where the SMTP component is used to send an email with an attachment and a message.

<figure><img src="/files/NpyBatuJCCnrWvrWo7GD" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.diaflow.io/workflow-builder/nodes/built-in-tools/smtp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
