SmarterMail Pro™ Administration Web Services

svcAliasAdmin.SetCatchAll Method 

Defines a catch-all alias for the specified domain.

public GenericResult SetCatchAll(
   string AuthUserName,
   string AuthPassword,
   string DomainName,
   string AliasName
);

Parameters

AuthUserName
User name with domain administrative privileges
AuthPassword
Password for AuthUserName
DomainName
Domain in which catch-all is being created
AliasName
Alias to be set as catch-all

Return Value

A GenericResult instance containing the results of the SetCatchAll action.

Remarks

If a blank alias name is provided as the AliasName parameter, the catch-all for the domain is cleared.

Example

The following sets the catch-all for the domain.net domain to new_alias@domain.net.

using System;
using svcAliasAdmin;

class svcAliasAdminSetCatchAll
{
 static void Main()
 {
   svcAliasAdmin alias = new svcAliasAdmin();
   GenericResult status = alias.SetCatchAll("admin@domain.net",
                                            "alskdjfhtt",
                                            "domain.net",
                                            "new_alias"

   if(status.Result)
     Console.WriteLine ("Catch-All updated");
   else
     Console.WriteLine (status.Message);
  }
}

See Also

svcAliasAdmin Class | svcAliasAdmin Namespace