ToolJet/docs/versioned_docs/version-3.16.0-LTS/data-sources/amazonses.md
2026-02-11 11:32:38 +05:30

63 lines
2.2 KiB
Markdown

---
id: amazonses
title: Amazon SES
---
ToolJet can connect to your Amazon SES account to send emails.
## Connection
To establish a connection with the **Amazon SES** data source, you can either click on the **+ Add new Data source** button located on the query panel or navigate to the **[Data Sources](/docs/data-sources/overview)** page through the ToolJet dashboard.
ToolJet requires the following to connect to Amazon SES:
- **Region**
- **Authentication**
- **Access key**
- **Secret key**
You may also select **AWS Instance Credentials** or **AWS ARN Role** as authentication methods from the dropdown. These options enable authentication through AWS-managed roles, eliminating the need to manually supply IAM access keys and allowing integration based on the configuration of your AWS environment.
**Note:** It is recommended to create a new IAM user for the database so that you can control the access levels of ToolJet.
<img className="screenshot-full img-full" src="/img/datasource-reference/amazonses/connection-v2.png" alt="Amazon SES" />
## Querying Amazon SES
1. Click on **+ Add** button of the query manager at the bottom panel of the editor.
2. Select the **Amazon SES** datasource added in previous step.
3. Select **Email service** as operation from the dropdown and enter the required parameters.
4. Click on the **Preview** button to preview the output or Click on the **Run** button to trigger the query.
<img className="screenshot-full img-full" src="/img/datasource-reference/amazonses/awsSES-listops.png" alt="Amazon SES" />
## Supported Operation
### Email service
#### Required parameters:
- **Send email to**
- **Send email from**
- **Subject**
- **Body**
#### Optional parameters:
- **CC Addresses**
- **BCC Addresses**
<img className="screenshot-full img-full" src="/img/datasource-reference/amazonses/ses-query.png" alt="Amazon SES" />
:::info
**Send mail to** - accepts an array/list of emails separated by comma.
For example:
`{{["dev@tooljet.io", "admin@tooljet.io"]}}`.
**Send mail from** - accepts a string.
For example: `admin@tooljet.io`
:::
:::tip
**Send a single email to multiple recipients** - The `Send mail to` field can contain an array of recipients, which will send a single email with all of the recipients in the field.
:::