SmarterMail Pro™ Administration Web Services

svcUserAdmin.GetUserForwardingInfo Method 

Returns the forwarding info for the specified user.

public UserForwardingInfoResult GetUserForwardingInfo(
   string AuthUserName,
   string AuthPassword,
   string EmailAddress
);

Parameters

AuthUserName
User name with domain administrative privileges
AuthPassword
Password for AuthUserName
EmailAddress
Account to get attributes for

Return Value

A UserForwardingInfoResult instance containing the results of the GetUserForwardingInfo action.

Example

using System;
using svcUserAdmin;

class svcUserAdminUserForwardingInfo
{
 static void Main()
 {
   svcUserAdmin admin = new svcUserAdmin();
   UserForwardingInfoResult status = admin.GetUserForwardingInfo("admin@domain.net",
                                                                 "alskdjfhtt",
                                                                 "dlindt@domain.net");

   if(status.Result)
   {
     Console.WriteLine ("Forwarding address: {0}", status.ForwardingAddress);
   }else{
     Console.WriteLine (status.Message);
  }
}

See Also

svcUserAdmin Class | svcUserAdmin Namespace