> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email

**EmailTools** enable an Agent to send an email to a user. The Agent can send an email to a user with a specific subject and body.

## Example

```python cookbook/tools/email_tools.py theme={null}
from phi.agent import Agent
from phi.tools.email import EmailTools

receiver_email = "<receiver_email>"
sender_email = "<sender_email>"
sender_name = "<sender_name>"
sender_passkey = "<sender_passkey>"

agent = Agent(
    tools=[
        EmailTools(
            receiver_email=receiver_email,
            sender_email=sender_email,
            sender_name=sender_name,
            sender_passkey=sender_passkey,
        )
    ]
)
agent.print_response("send an email to <receiver_email>")
```

## Toolkit Params

| Parameter        | Type  | Default | Description                         |
| ---------------- | ----- | ------- | ----------------------------------- |
| `receiver_email` | `str` | -       | The email address of the receiver.  |
| `sender_name`    | `str` | -       | The name of the sender.             |
| `sender_email`   | `str` | -       | The email address of the sender.    |
| `sender_passkey` | `str` | -       | The passkey for the sender's email. |

## Toolkit Functions

| Function     | Description                                                                  |
| ------------ | ---------------------------------------------------------------------------- |
| `email_user` | Emails the user with the given subject and body. Currently works with Gmail. |

## Information

* View on [Github](https://github.com/agno-agi/phidata/blob/main/phi/tools/email.py)
