> For the complete documentation index, see [llms.txt](https://docs.digibee.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digibee.com/documentation/connectors-and-triggers/connectors/web-protocols/email-v1.md).

# Email V1 (Deprecated)

{% hint style="info" %}
The **Email V1** is deprecated and no longer updated. Please refer to the document with the most recent version of the feature: [Email V2](/documentation/connectors-and-triggers/connectors/web-protocols/email-v2.md).&#x20;
{% endhint %}

**Email V1** invokes the SMTP server in a pipeline. To use **Email V1**, you must create a SMTP-type account. Read the [tutorial](/documentation/connectors-and-triggers/connectors/web-protocols/email-v1/email-v1-usage-example.md) on how to use the ***Email V1*** component.&#x20;

## Parameters

Take a look at the configuration options for the component. Parameters supported by [Double Braces expressions](/documentation/connectors-and-triggers/double-braces/overview.md) are marked with (DB).

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td>Account</td><td>account to be used by the component</td><td>None</td><td>Any</td></tr><tr><td>From</td><td>set the sender email to be sent by the component</td><td>None</td><td>String</td></tr><tr><td>Subject</td><td>sets the subject to be sent by the component</td><td>None</td><td>String</td></tr><tr><td>Content Type</td><td>sets the Content Type and encoding</td><td>None</td><td>String</td></tr><tr><td>Template</td><td>template body to be used to prepare email templates</td><td>None</td><td>String</td></tr></tbody></table>

### **Parameters examples**

**From:**

```
example@examplo.com.br
```

**Subject:**

```
Example: ${subject}
```

**Content Type:**

```
text/html; charset=UTF-8
```

**Template:**&#x20;

```
<html><body><strong>${firstname} ${lastname}</strong></body></html>
```

## Messages flow <a href="#messages-flow" id="messages-flow"></a>

### Input <a href="#input" id="input"></a>

The component waits for a message in the following format:

```
{
    to  : ["abc1@gmail.com","abc2@gmail.com"]
    cc  : ["abc1@gmail.com","abc2@gmail.com"],
    bcc : ["abc1@gmail.com","abc2@gmail.com"],
	   params: { 
                     // Template body replacement parameters
			"paramA":"valueA",
			"paramB":"valueB",
			...
			"paramN":"valueN"
		}
}
```

### Output <a href="#output" id="output"></a>

When there's an error, this is the message shown in the component output:

```
{
	timestamp: 1503608693745,
	code: 999,
	message:  "error message"
}
```

\
Note that, for some errors, body and header are unavailable.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.digibee.com/documentation/connectors-and-triggers/connectors/web-protocols/email-v1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
