EmailAddress返回FQDN,而不是电子邮件地址 [英] EmailAddress returning FQDN, not e-mail address
本文介绍了EmailAddress返回FQDN,而不是电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取域用户的电子邮件地址,而不是FQDN?
How can I get the e-mail address of a domain user, not the FQDN?
EmailAddress email1 = new EmailAddress();
if if(user) .EmailAddresses.TryGetValue(EmailAddressKey.EmailAddress1,out email1))
{
EmailAddress email1 = new EmailAddress();
if (user.EmailAddresses.TryGetValue(EmailAddressKey.EmailAddress1, out email1))
{
}
email1.Address是一个FQDN('/ O = Company,Inc。/ OU = Company / cn = Recipients / cn = TestUser')但我需要一个电子邮件地址。 email1的子属性都没有任何其他细节。
email1.Address is a FQDN ('/O=Company, Inc./OU=Company/cn=Recipients/cn=TestUser') but I need an e-mail address. None of the sub properties of email1 have any additional details.
推荐答案
我开始工作的一个方法就是采用FQDN并查找它代码中的Active Directory,但我仍然有5%的电子邮件地址,而我在AD中找不到,因为他们不再是员工。
Well a work around I got to work was to take the FQDN and look it up against Active Directory in code, but I still have 5% of the e-mail addresses out of 3k that I can't find in AD because they are no longer employees.
这篇关于EmailAddress返回FQDN,而不是电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文