Lotus Notes Sending email with options

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 08:41:14

问题


I'm using Lotus Domino.dll. Already finished sending. How set delivery options to DeliveryPriority=H and DeliveryReport=C? CODE

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);

回答1:


Add the lines

        _notesDocument.ReplaceItemValue("DeliveryPriority", "H");
        _notesDocument.ReplaceItemValue("DeliveryReport", "C");

after your Subject line.

You can find a complete list of mail options here.



来源:https://stackoverflow.com/questions/21448948/lotus-notes-sending-email-with-options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!