Description
This function creates an autoresponder for an email account.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
|
string |
Required The email account name. |
A valid email account name on the server. For example, user if the email address is user@example.com. |
user |
from |
string |
Required The contents of the autoresponder message'sFrom: field. |
Any string, or a blank value. |
User Name |
subject |
string |
Required The contents of the autoresponder message'sSubject: field. |
Any string, or a blank value. |
Autoresponder Subject |
body |
string |
Required The contents of the autoresponder message'sBody section. |
Any string, or a blank value. |
This is an autoresponder message. |
domain |
string |
Required The email account's domain. |
The email account's domain. For example, example.com if the email address is user@example.com. |
example.com |
is_html |
Boolean |
Required Whether the body of the autoresponder message begins with an HTML Content-Type declaration. |
|
1 |
charset |
string |
The character set. This parameter defaults to us-ascii. |
Any standard character encoding set. |
UTF-8 |
interval |
integer |
Required The amount of time, in hours, that the server waits between autoresponder messages to the same address. |
Any positive integer. Note: If you specify 0, the system sends a message for each received email. |
24 |
start |
integer |
Required When to disable the autoresponder in Unix time. |
A time, in Unix time format. |
1410277881 |
stop |
integer |
Required When to disable the autoresponder in Unix time. |
A time that is after the start time, inUnix time format. |
1410300000 |
Returns
This function only returns metadata.