# Mail Provider

## Introduce

The email provider task is responsible for registering accounts on some websites or sending verification codes to the website's registered email address for account verification.

## Create a Mail Provider

The mail provider is a task which can read email from your email box and let other tasks to get the verification codes and activation URLs. The account generator needs a mail provider to receive the activation URLs to be able to activate accounts automatically.

Create a task with type `Gmail` from the `Tasks` on security page.

<figure><img src="/files/mR0bdTvQpK5mvkUD9QZW" alt=""><figcaption></figcaption></figure>

And then select a proxy group, and a proxy if necessary. \
\
![](/files/6mHuJmSnYsrirVREXFKN)

Click `Save` to create a Gmail task.

Click the `Start` button to start this task, and click to eye open the browser window. It supports automatic login and manual account login. If imap is used, it will automatically log in to the account.

Kylin currently supports only one email provider, that is, gmail. Make sure you have setup your catch-all email correctly and forwards all your email to the email box.

## Create Mail Provider-Imap Function Task (used by Cityline mail login)

Create a mail provider task. This task is not to log in to an email to get forwarded emails, but to support each account to log in to the imap email to get the verification code and click on the link and other services.

Under the account page, you need to create a Google (App) account and then save it. Then under the security page, click Create, select the gmail (imaps) type task in the function selection mail provider category in the create task settings menu, as shown in the figure:

<figure><img src="/files/uLUL7yi6drKcH83emR3n" alt=""><figcaption></figcaption></figure>

The account does not need to be configured. The proxy can be configured with localhost or other proxy groups. It supports the creation of multiple tasks and the configuration of the time for switching proxy. The maximum concurrency is 30.Notes

After creation, you can start the task to use it. Such a mail provider task without configuring an account currently only supports the email verification code login function of the cityline account under the wallet page.

* The mail provider must be a gmail.
* It is recommended to use isp instead of localhost
* If you create Google (imap), please note that you need to create a google (app) account category under the account page, and the password needs to be a special 16-digit password. For details, please check:  <https://support.google.com/accounts/answer/185833?hl=en>
* You should set a catch-all email domain and forwards all your emails to a email address.
* It's normal if task is waiting for gmail
* Recreate updating tasks for failed accounts, until all of them become `NORMAL`
* Create the updating tasks to check account status if the status is `UNKNOWN`
* The websites that currently support emial provider are Footsites and Nike.


---

# Agent Instructions: 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:

```
GET https://kylin-inc.gitbook.io/spider-browser/other-modules/mail-provider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
