Prerequisites
The following example requires theboto3 library and valid AWS credentials. You can install boto3 via pip:
Make sure to add the domain or email address you want to send FROM (and, if
still in sandbox mode, the TO address) to the verified emails in the SES
Console.
Example
The following agent researches the latest AI news and then emails a summary via AWS SES:aws_ses_tools.py
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
sender_email | str | None | Verified SES sender address. |
sender_name | str | None | Display name that appears to recipients. |
region_name | str | "us-east-1" | AWS region where SES is provisioned. |
enable_send_email | bool | True | Enable the send_email functionality. |
all | bool | False | Enable all functionality. |
Toolkit Functions
| Function | Description |
|---|---|
send_email | Send a plain-text email. Accepts the arguments: subject, body, receiver_email. |
Developer Resources
- View Tools
- View Cookbook
- Amazon SES Documentation