Lotus Notesを使用してC#からメールを送信していますが、送信されたメールはデータベースになく、出力フォルダーに表示されません。
私のコードは次のとおりです。
_notesSession = new NotesSession();
string sPassword = "";
_notesSession.Initialize(sPassword);
string sServer = "";
string sFile = "data\mailfilename.nsf";
_notesDataBase=_notesSession.GetDatabase(sServer, sFile, false);
// not: _notesDataBase=_notesSession(GetDatabase(sServer, sFile, false));
if (!_notesDataBase.IsOpen) _notesDataBase.Open();
_notesDocument = _notesDataBase.CreateDocument();
_notesDocument.SaveMessageOnSend = true;
.
.
.
_notesDocument.Save(true,false);
_ItemValue = _notesDocument.GetItemValue("SendTo");
_notesDocument.Send(false, ref _ItemValue);
メールを送信する前に_notesDocumentの値を確認すると、CreateDocument()の後に次のエラーメッセージが表示されます。
FolderReferences = "((Domino.NotesDocumentClass)(_ notesDocument))。FolderReferences" hat eine Ausnahme vom Typ"System.Runtime.InteropServices.COMException"verursacht。(...は...のタイプで例外を引き起こしました)base {System.Runtime.InteropServices.ExternalException}={"フォルダ参照はデータベースで有効になっていません"}
ところで、sFileを完全修飾パス(c:.... nsf)に置き換えようとしましたが、結果は同じです。
誰かが私にヒントを教えてもらえますか、出力フォルダにメールを保存するにはどうすればよいですか?