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

# importMail

> Automated tasks in Service - importMail

Responsible for importing mail into Service.

**Usage:** `importMail [OPTION] domain`

**Options:**

* **-force** Try to import all mails.
* **-debug** Display debug information.
* **-maxdebug** Display all debug information (enables debug).
* **-interactive** Confirm each mail import.
* **-socketdebug** Debug socket activity (lots!).
* **-delay** Delay import for a random number of seconds.
* **-noinbox** Do not import inbox files.
* **-file** Import from a file.
* **-filter** Set `mail_in_filter.id`. Required together with file.
* **-about** Show about.

**Example:** `importMail -file "C:\Customer Service\text\Inbox\inbox.298231" -filter 13 support.yourdomain.com`


## Related topics

- [Create Ticket From Mail Data](/en/api/reference/restful/agent/customerservice_agent/create-ticket-from-mail-data.md)
- [SuperOffice.WebApi.Agents.ICustomerServiceAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ICustomerServiceAgent.md)
- [SuperOffice.WebApi.Agents.CustomerServiceAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.CustomerServiceAgent.md)
- [Add Message From Mail Data](/en/api/reference/restful/agent/customerservice_agent/add-message-from-mail-data.md)
- [NSCustomerServiceAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSCustomerServiceAgent.md)
- [Automated tasks in Service](/en/onsite/automated-tasks/index.md)
