> For the complete documentation index, see [llms.txt](https://flowprodocs.wftutorials.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flowprodocs.wftutorials.com/flowblocks/output/send-email.md).

# Send Email

Send an Email message

### Description <a href="#prop-title" id="prop-title"></a>

Send an email using the parameters.

### Properties

#### Connection String

Add a query string with the connection options for your mail provider.

* host - the host of the mail server e.g. smtp.gmail.com for Gmail
* port - the port number. The default is 25. Others include 465, 2255
* user - the connection username
* password - the connection password

```
// example connection string
host=smtp.mailtrap.io&port=34&user=username&password=pass
```

#### Additional Connection Settings

* tsl\_rejectUnauthorized - Used to reject a TLS connection if unauthorized. Default is false
* ignoretls - if this is *true* and *secure* is false then TLS is not used even if the server supports STARTTLS extension *(from node mailer docs)*
* requiretls - if this is *true* and *secure* is false then Nodemailer tries to use STARTTLS even if the server does not advertise support for it. If the connection can not be encrypted then message is not sent *(from node mailer docs)*
* secure - if *true* the connection will use TLS when connecting to server. If *false* (the default) then TLS is used if server supports the STARTTLS extension. In most cases set this value to *true* if you are connecting to port 465. For port 587 or 25 keep it *false (from node mailer docs)*

#### To

Send the email to this email address. This can be a string, variable or a comma delimited string.

#### Subject&#x20;

The subject of the email. This can be a string or a variable

#### Body

The body of the email. This can be HTML or plain text or variable

#### From&#x20;

The email address that is sending this email. Defaults to <no-reply@flowpro.com>

#### Attachments (string | variable)

The file path to attach to this email. This can be a string, variable or comma separated string.

### Returns

Returns the body of the email if successful and the error if it is not successful.

### NPM Package

This block uses node mailer for more information view the [node mailer](https://nodemailer.com/about/) documentation.
