domain_add_email ()
Add specific mailbox.
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | session id* |
email_subdomain_id | unique id of email subdomain* | |
name | mailbox name* | |
type | type of mailbox ('mailbox' or 'forward')* | |
password | password (mandatory for record with type 'mailbox') | |
weak | boolean value, 1 mean allowed weak passwords | |
redirect | email address for sending copies (mandatory for record with type 'forward') | |
quota | mailbox quota in MB (allowed only for domain with specific hosting plan) | |
Returns: | HTTP code | 200 (OK) |
reply | answer is empty | |
HTTP code | 400 (Bad request) | |
invalid_values | array of invalid values with error messages |
CURL
curl "https://admin.systems90.cz/api/domain_add_email?sid=%sid%&email_subdomain_id=%email_subdomain_id%&name=%name%&type=%type%&password=%password%"
PHP Library
$api->domain_add_email(array(
'email_subdomain_id' => %email_subdomain_id%,
'name' => %name%,
'type' => %type%,
'password' => %password%
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<email_id>225385</email_id>
</reply>