This function creates an autoresponder for an email account.
Important:
When you disable the Receive Mail role, the system disables this function.
body required | string The contents of the autoresponder message's Example: body=This is an autoresponder message. |
domain required | string <domain> The email account's domain. For example, Example: domain=example.com |
email required | string The email account name. For example, Example: email=user |
from required | string The contents of the autoresponder message's Example: from=User Name |
interval required | integer >= 0 The amount of time, in hours, that the server waits between autoresponder messages to the same address. Note: If you specify Example: interval=24 |
is_html required | integer Whether the body of the autoresponder message begins with an HTML Content-Type declaration.
Example: is_html=1 |
start required | integer <unix_timestamp> When to enable the autoresponder. Example: start=1410277881 |
stop required | integer <unix_timestamp> When to disable the autoresponder. A time that is after the Example: stop=1410300000 |
subject required | string The contents of the autoresponder message's Example: subject=Autoresponder Subject |
charset |
uapi --output=jsonpretty \ --user=username \ Email \ add_auto_responder \ email='user' \ from='User Name' \ subject='Autoresponder Subject' \ body='This is an autoresponder message.' \ domain='example.com' \ is_html='1' \ interval='24' \ start='1410277881' \ stop='1410300000'
{- "apiversion": 3,
- "func": "add_auto_responder",
- "module": "Email",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}