> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# Code tools can now send an email from a conversation

A code tool can now send an email with `send_email(to, subject, body, bcc=None, html=False, reply_to=None)`. Use it to put a one-time code, an order confirmation or a receipt in the end user's inbox during a conversation. The result tells the Playbook whether the email was sent, so the Playbook can branch on it.

## What's new

* **Your Email channel address**: The email goes out from your Email channel's address and sender name. An address on your own domain is used after its DNS records are verified. Until then the email goes out from the channel's Ada address.
* **Plain text or HTML**: An HTML body keeps paragraphs, headings, lists, tables and links. A link keeps its address only when its domain is on your allowed domains list for code tools.
* **Limits**: Each conversation can send up to 10 emails. Each address can receive up to 15 emails a day. Each AI Agent can send up to 5,000 emails a day. Contact your Ada team to raise the per-Agent limit.

## Who this affects

Every AI Agent that has the Email channel set up.

Learn more about [the functions a code tool can call](/docs/automation/tools/code-tools/inputs-outputs-and-environment#available-functions).