map.addAddressMap()

Discussion for developers using MailEnable.
Post Reply
Nisar Ahmed
Posts: 1
Joined: Mon Apr 12, 2010 10:10 am

map.addAddressMap()

Post by Nisar Ahmed »

i m looking to make postoffice using API...
every thing's fine when i run this with other project ...
but when i tried with this solution, the following code generte error??

Code: Select all

  MailEnable.Administration.AddressMap map = new MailEnable.Administration.AddressMap();

        map.Account = postoffice;

        map.DestinationAddress = "[SF:" + postoffice + "/" + username + "]";

        map.SourceAddress = "[SMTP:" + username + "@" + domain + "]";

        map.Scope = "";






      if (map.AddAddressMap() == 0)
        {
            res = false;
            throw new Exception("Failed address map");

        }

map.AddAddressMap() always return 0. any help.....................

Post Reply