map.addAddressMap()

Nisar Ahmed
Posts: 1
Joined: Mon Apr 12, 2010 10:10 am

map.addAddressMap()

Postby Nisar Ahmed » Mon Apr 12, 2010 10:19 am

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.....................

Who is online

Users browsing this forum: No registered users and 1 guest