2012-07-14 68 views

回答

0

這裏是我爲了做了檢查,如果用戶是DL的成員:

RoutingAddress rGroupe = new RoutingAddress("mail of the DL"); 

foreach (EnvelopeRecipient entry in e.MailItem.Recipients) 
{ 
    RoutingAddress rRecipient = new RoutingAddress(entry.Address.ToString()); 

    if (addressBook.IsMemberOf(rRecipient, rGroupe)) 
    { 
     // ok 
    } 
}