小编Ale*_*ker的帖子

Lotus Notes使用选项发送电子邮件

我正在使用Lotus Domino.dll.已经完成发送.如何设置交付选项DeliveryPriority=HDeliveryReport=C?码

NotesSession _notesSession = new NotesSession();
NotesDocument _notesDocument = null;
string sMailFile = "mail/" + login + ".nsf";
 _notesSession.Initialize(passwrod);
 NotesDatabase _notesDataBase = _notesSession.GetDatabase(sServerName, sMailFile, false);
            if (!_notesDataBase.IsOpen)
            {
                _notesDataBase.Open();
            }
            _notesDocument = _notesDataBase.CreateDocument();
            _notesDocument.ReplaceItemValue("Form", "Memo");
            _notesDocument.ReplaceItemValue("SendTo", aSendTo);
            _notesDocument.ReplaceItemValue("Subject", aSubject);
            NotesRichTextItem _richTextItem = _notesDocument.CreateRichTextItem("Body");
            _richTextItem.AppendText(text + "\r\n");
 _richTextItem.EmbedObject(EMBED_TYPE.EMBED_ATTACHMENT, "", file);
 var oItemValue = _notesDocument.GetItemValue("SendTo");
 _notesDocument.SaveMessageOnSend = true;
 _notesDocument.Send(false, ref oItemValue);
Run Code Online (Sandbox Code Playgroud)

c# lotus-notes lotus-domino

1
推荐指数
1
解决办法
2135
查看次数

标签 统计

c# ×1

lotus-domino ×1

lotus-notes ×1