You'd have to use ADSI code to write entries to the GAL, you can't do that
using Outlook object model code. Changing GAL entries or adding to a GAL DL
is a server-side operation.
"Sunil" <Sunil@discussions.microsoft.com> wrote in message
news:2FDB0610-37F7-4DE2-A4AF-FFB1FB6342D4@microsoft.com...
> Hi All,
>
> Is it possible to add the users into the distribution list in GAL from
> outlook 2007.
>
> I have tried to use the below function but did not understand the
> parameters
> needs to be paased.
>
> myRecipient.AddressEntry.Members.Add(..... )
>
> Here myRecipient is the recipient which refers to the Distribution list
> from
> GAL.
>
> The signature of the method says
> AddressEntry.Add( string Type, object Name , object Address )
>
> I feel, Type might be "EX", but not sure about the other parameters .
>
> Please let me know your thoughts.
>
> Thanks,
> Sunil