0
votes
0answers
15 views

Cannot send Email to Exchange Distribution list

I have this (shortened) piece of code, which does not work like it should and I can not figure out why: SPGroup group = web.SiteGroups["Some Notification Group"]; foreach (SPUser user in group.Users) ...
3
votes
2answers
3k views

Get User Profile from email address

I was using SPUtility.ResolvePrincipal to resolve the email address but it only seems to work if the user is already in the User Information List. Is there any way I can resolve users based on email ...