Edit Mailbox

Discussion for developers using MailEnable.
Post Reply
congthanhgiong
Posts: 6
Joined: Tue Sep 16, 2008 6:57 am

Edit Mailbox

Post by congthanhgiong »

Hi,

I'm using Enterprise 3.x and cannot edit mailbox properties though the return value is 1 which is success. All IME_xx users and i even grant Everyone user to Full control over Config folder in ME installation location.

Any one knows what's wrong with it ?

public int edit_mailbox(string mailbox, long limit,string postoffice)
{
Mailbox oMailbox= new Mailbox();
int result = -1;
oMailbox.Postoffice = postoffice;
oMailbox.MailboxName = mailbox + "@" + postoffice;

oMailbox.GetMailbox(); >> return 0 ????

result = oMailbox.EditMailbox(postoffice, mailbox + "@" + postoffice,
"", 0, 1, limit, -1);
return result; >> return 1
}

Post Reply