Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/parser.php on line 66
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/lexer.php on line 299
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 24
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 51
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 215
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 243
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 305
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 338
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 585
Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/xhtml.php on line 918
Table of Contents
Function: addDomainAlias
The addDomainAlias function adds the specified domain as an alias to the specified domain.
Syntax
addDomainAlias (email, password, alias, domain)
Parameters
- email (string) - Authenticating user's email address
- password (string) - Authenticating user's password
- alias (string) - Alias domain to add
- domain (string) - Primary domain to add the alias to
Results
This function will return a string containing different results depending on if the call was successful or if an error was found.
Error Results
- 0 - Login failed: The email address/password combination was incorrect
- 1 - Access to Primary Domain Denied: The specified primary domain is not assigned to the authenticated account
- 2 - The alias domain specified already exists in the Easy Antispam system (duplicate domain)
- 3 - There was no alias domain specified (alias=blank)
Success Results
A sucessful call to this function will return the gateway hostname that the alias domain is assigned to. (example: g1.ijnet.net)
![]() |
![]() |



Discussion