以编程方式将LDAP帐户添加到MS Outlook

问题描述 投票:0回答:1

我将RDO库用于Outlook。

我添加了POP3帐户,没有问题。

        RDOSession Session = new RDOSession();
        Session.Logon();
        var AllAccounts = Session.Accounts;
        bool AccFound = false;
        foreach (RDOAccount acc in AllAccounts)
        {
            if (acc.Name.Equals("[email protected]", StringComparison.OrdinalIgnoreCase))
                AccFound = true;
        }
        if (!AccFound)
        {
            try
            {
                var POP3Account = AllAccounts.AddPOP3Account("Test Account", "[email protected]", "pop3.mail.loc", "smtp.mail.loc", "[email protected]", "Password");
                POP3Account.SMTP_UseAuth = true;
                POP3Account.Save();
            }
            catch
            { }
        }
        Session.Logoff();

没事。

但是我不明白如何将LDAP地址簿帐户添加到Outlook配置中。

有可能吗?您可以给我简单的示例(C#)吗?。

感谢您的帮助。

outlook ldap outlook-redemption
1个回答
1
投票

当前,只能添加POP3 / SMTP,PST和委托Exchange帐户。您应该可以使用ProfMan库,但是它的底层级别更高-设置LDAP提供程序期望的所有属性是您的责任:您可能想看看使用OutlookSpy的现有LDAP帐户](单击IProfAdmin或IMAPISession | AdminServices)。

© www.soinside.com 2019 - 2024. All rights reserved.