Microsoft Content Management Server - CMS emails to all Editors

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > February 2004 > CMS emails to all Editors





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CMS emails to all Editors
=?Utf-8?B?VG9ueQ==?=

2004-02-04, 10:46 am

I am trying to return all the members in Editors (ie NTuser and NTgroup) when a posting is submitted. I can get all the users, but I can't get the groups. When I can get the groups I'll be able to get the users from them.

Inside of CmsPosting_Submitted:
....
foreach (User approver in submittedPosting.Approvers())
{
mail.To = approver.ClientAccountName.ToString() + "@domain.com";
}

Any ideas?
TIA

Manasvin@msnews.microsoft.com

2004-02-04, 10:46 am

Hi Tony,

you could try using the overloaded .approvers(true) to include all the NT
groups. have you tried that ?

Manasvin

"Tony" <anonymous@discussions.microsoft.com> wrote in message
news:7A955851-EDF5-488E-A052-F38642D9CC0A@microsoft.com...
quote:

> I am trying to return all the members in Editors (ie NTuser and NTgroup)


when a posting is submitted. I can get all the users, but I can't get the
groups. When I can get the groups I'll be able to get the users from them.
quote:

>
> Inside of CmsPosting_Submitted:
> ...
> foreach (User approver in submittedPosting.Approvers())
> {
> mail.To = approver.ClientAccountName.ToString() + "@domain.com";
> }
>
> Any ideas?
> TIA
>




=?Utf-8?B?VG9ueQ==?=

2004-02-04, 10:46 am


Manasvin,

Thanks! That did it.

Tony

----- Manasvin@msnews.microsoft.com wrote: -----

Hi Tony,

you could try using the overloaded .approvers(true) to include all the NT
groups. have you tried that ?

Manasvin

"Tony" <anonymous@discussions.microsoft.com> wrote in message
news:7A955851-EDF5-488E-A052-F38642D9CC0A@microsoft.com...
quote:

> I am trying to return all the members in Editors (ie NTuser and NTgroup)


when a posting is submitted. I can get all the users, but I can't get the
groups. When I can get the groups I'll be able to get the users from them.
quote:

> ...
> foreach (User approver in submittedPosting.Approvers())
> {
> mail.To = approver.ClientAccountName.ToString() + "@domain.com";
> }
> TIA
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com