microsoft.public.exchange.development
[Top] [All Lists]

MailEnable af Distribution group

Subject: MailEnable af Distribution group
From: "Anders Dahl Tollestrup"
Date: Fri, 27 Oct 2006 13:39:07 +0200
Newsgroups: microsoft.public.exchange.development
Hi

I'm having a little trouble mail-enabling af universal distribution group in VB.NET 2.0

The code:

NewGroupDE = BaseDE.Children.Add("cn=" & GroupName, "group")
NewGroupDE.Properties.Item("sAMAccountName").Value = GroupName
NewGroupDE.Properties.Item("displayName").Value = GroupName
NewGroupDE.Properties.Item("groupType").Value = &H8
NewGroupDE.Properties.Item("mailNickname").Value = GroupName.Replace(" ", "")
NewGroupDE.CommitChanges()

NewGroupDE.NativeObject.Mail = SMTP
NewGroupDE.NativeObject.MailEnable()
NewGroupDE.CommitChanges()

When it execute the MailEnable command (2nd last line), i got an error claiming that MailEnable doesn't exist on this object.

What am I missing ...


Best regards,
/Anders

<Prev in Thread] Current Thread [Next in Thread>
  • MailEnable af Distribution group, Anders Dahl Tollestrup <=
Privacy Policy