> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/end-user-and-partner-section/end-user-section/how-to-import-documents/email.md).

# Email

DocBits can import documents from email in two ways. Both are configured under **Settings → Import** (Document Processing).

## Method 1 — Email Import (connect a mailbox)

Connect an email account and DocBits automatically imports documents as new emails arrive. On the Import page, open the **Email Import** section and click **+ New**.

<figure><img src="/files/OlVq99vG0BJy0Nl2Igb4" alt="Email Import section"><figcaption><p>Email Import — connect a mailbox for automatic document import</p></figcaption></figure>

Then choose the protocol for your mailbox:

* **IMAP** — see [IMAP](/end-user-and-partner-section/end-user-section/how-to-import-documents/email/imap.md)
* **OAuth (Office 365)** — see [OAuth Office365](/end-user-and-partner-section/end-user-section/how-to-import-documents/email/oauth-office365.md)

## Method 2 — Inbound Emails (forward to DocBits)

Forward — or send — emails directly to your organisation's unique inbound address and DocBits imports the attachments automatically. No mailbox connection is required. Open the **Inbound Emails** section on the Import page.

<figure><img src="/files/65trLIWPnILtoWWlMgor" alt="Inbound Emails section"><figcaption><p>Inbound Emails — forward documents to your DocBits address</p></figcaption></figure>

* **Info / E-Mail** — your organisation's unique inbound address (format `<org-id>@inbound.docbits.com`). Forward your documents to this address; use the copy icon to copy it.
* **Import Document only from predefined E-Mail(s)** — when enabled, only emails from the senders you add to the whitelist are imported; emails from any other sender are ignored.
* **Reply to this email if import can not be done** — sends an automatic reply to the sender when the import fails.
* **Notify sender when import fails** — notifies the sender if their email could not be imported.
* **Logs** — open the inbound email processing log. Click **Save** to apply your changes.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.docbits.com/end-user-and-partner-section/end-user-section/how-to-import-documents/email.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
