> For the complete documentation index, see [llms.txt](https://docs.thedaotool.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thedaotool.com/local-setup/mail-setup.md).

# Mail Setup

This section will help you set up email functionality in The DAO Tool — used to send notifications like bounty assignments, password resets, and email validation.

![MAIL SETUP](https://4261895797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F656do4r0WbvTocgszcsk%2Fuploads%2Fgit-blob-16a2aa3ef091b9d8fa0b7ccb03b09bcb227bac62%2Fgoogle-banner.png?alt=media)

We’ll be using **Gmail's SMTP service** to send emails securely.

## Step 1: Enable 2-Step Verification (if not already)

![2FA](https://4261895797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F656do4r0WbvTocgszcsk%2Fuploads%2Fgit-blob-5f923890e7417852f3ab585ec16d2fcde61563d3%2Fgoogle-2fa.png?alt=media)

First, make sure 2-Step Verification is enabled on your Google account.\
You can enable it here: [myaccount.google.com/security](https://myaccount.google.com/security)

## Step 2: Create an App Password

![APPLICATION PASSWORD](https://4261895797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F656do4r0WbvTocgszcsk%2Fuploads%2Fgit-blob-a0252ef47ad255fafa06aa545a349dd45a726b8c%2Fgoogle-app-password.png?alt=media)

1. Go to your [Google App Passwords](https://myaccount.google.com/apppasswords) page.
2. Please provide a valid name for your application.
3. Click **Create**.\
   Google will give you a **16-character app password** (looks like `abcd efgh ijkl mnop`).

## Step 3: Add to `.env` File

Now open your `/server/.env` file and add the following:

```env
SMTP_USER=your-gmail-address@gmail.com
SMTP_PASS=your-16-character-app-password
```

{% hint style="warning" %}
Make sure your Gmail is a trusted sender (ideally not your personal account) for better deliverability on production.
{% endhint %}

That’s it! Your emails will now be sent using your Gmail account via secure SMTP.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thedaotool.com/local-setup/mail-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
