0
私はREdemptionを使用していますOutlookで新しいメールボックスアカウントを追加するには以下は私のコードです。私は新しいRDOSessionを作成しています行で償還クラスが登録されていません
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();
}
私はクラスが登録されていないことを示すこの Exceptionを取得します。
Redemption Installerを使用してクラスを登録しようとしましたが、手動でregsvr32.exeも手動で実行しました。
どれsuggetions
あなたのアプリ、Outlook、および償還のビット数はどのくらいですか? –
Outlookと償還は64ビットです。アプリケーションは任意のCPUを使用するように登録されています。私は32ビットを好むためにボックスのチェックを外しました。 –