1
我想編寫一個Exchange傳輸代理來檢查電子郵件發件人對文本文件並基於該更改電子郵件主題行。什麼是C#代碼來檢查電子郵件發件人?應該是這樣的嗎?Exchange傳輸代理來檢查電子郵件的發件人
List<RoutingAddress> emails = new List<RoutingAddress>();
RoutingAddress john = new RoutingAddress("[email protected]");
emails.Add(john);
if (emails.Contains(e.MailItem.FromAddress))
e.MailItem.Message.Subject = "EmailGroup1";