gpt4 book ai didi

c# - Lotus Notes 发送带有选项的电子邮件

转载 作者:太空宇宙 更新时间:2023-11-03 19:10:05 25 4
gpt4 key购买 nike

我正在使用 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);

最佳答案

添加行

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

在您的主题行之后。

您可以找到完整的邮件选项列表 here .

关于c# - Lotus Notes 发送带有选项的电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21448948/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com