SPWeb web = SPControl.GetContextWeb(Context);
// Select the group from which users needs to be populated , Here i have chosen AssociatedOwnerGroup
foreach (SPUser user in members.Users)
{
// Here i need to populate users that has email id
if(!string.IsNullOrEmpty(user.Email)) {
pe.DisplayText = user.Name;
pe.Key = user.LoginName;
PickerEntity peValid = peUsername.ValidateEntity(pe);
if (peValid != null)
peUsername.Entities.Add(peValid);
}
In webpart or user control you have
///if you are using user control then add this tag on top of the page