0
我正在使用REdemption在Outlook中添加新的郵箱帳戶。以下是我的代碼。贖回類別未註冊
private static void CreateAccount()
{
var app = new Outlook.Application();
var Session = new Redemption.RDOSession(); // Generates Exception
Session.MAPIOBJECT = app.Session.MAPIOBJECT;
var Accounts = Session.Accounts;
var POP3Account = Accounts.AddPOP3Account("Joe The User", "[email protected]", "outlook.office365.com", " smtp.office365.com", "currentUser", "pwd");
POP3Account.SMTP_UseAuth = true;
POP3Account.SMTP_LogonKind = rdoSMTPLogonKind.lkSameAsIncoming;
POP3Account.SMTP_Port = 1025;
POP3Account.LeaveMessagesOnServer = true;
POP3Account.DeleteFromServerAfterXDays = true;
POP3Account.DaysBeforeDelete = 30;
POP3Account.Save();
}
就行了,我正在創建新RDOSession我得到這個 Exception指出類沒有註冊。
我已經嘗試通過Redemption Installer註冊類並手動throguh regsvr32.exe。
任何suggetions
您的應用程序,Outlook和Redemption的位數是多少? –
展望和贖回是64位。應用程序已註冊使用任何CPU。我沒有選中該框來選擇32位。 –