# Create email account's autoresponder

This function creates an autoresponder for an email account.

Important:

  When you disable the Receive Mail role, the system disables this function.

Endpoint: GET /Email/add_auto_responder
Version: 11.136.0.19
Security: BasicAuth

## Query parameters:

  - `body` (string, required)
    The contents of the autoresponder message's Body section.
    Example: "This is an autoresponder message."

  - `domain` (string, required)
    The email account's domain. For example, example.com if the email address is user@example.com.
    Example: "example.com"

  - `email` (string, required)
    The email account name. For example, user if the email address is user@example.com.
    Example: "user"

  - `from` (string, required)
    The contents of the autoresponder message's From: field.
    Example: "User Name"

  - `interval` (integer, required)
    The amount of time, in hours, that the server waits between autoresponder messages to the same address.

Note:

  If you specify 0, the system sends a message for each received email.
    Example: 24

  - `is_html` (integer, required)
    Whether the body of the autoresponder message begins with an HTML Content-Type declaration.
* 1 — Include an HTML content type declaration.
* 0 — Do not include an HTML content type declaration.
    Enum: 0, 1

  - `start` (integer, required)
    When to enable the autoresponder.
    Example: 1410277881

  - `stop` (integer, required)
    When to disable the autoresponder. A time that is after the start time.
    Example: 1410300000

  - `subject` (string, required)
    The contents of the autoresponder message's Subject: field.
    Example: "Autoresponder Subject"

  - `charset` (string)
    The character set.
    Example: "UTF-8"

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "add_auto_responder"

  - `module` (string)
    The name of the module called.
    Example: "Email"

  - `result` (object)

  - `result.data` (object,null)

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    * 1 - Success.
* 0 - Failed. Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


