I have developed code,in C#, which sends email in Lotus Notes. I want SentBy(From field) in the email to be hidden. I have user the Principal field to make Custom field.
NotesDocument doc = db.CreateDocument();
doc.ReplaceItemValue("Form", "Memo");
doc.ReplaceItemValue("SendTo", richTextBox1.Text.Trim().Split(','));
doc.ReplaceItemValue("Subject", richTextBox3.Text);
doc.ReplaceItemValue("Principal", "Test Demo");
NotesRichTextItem _richTextItem = doc.CreateRichTextItem("Body");
_richTextItem.AppendText(richTextBox4.Text + "\r\n");
doc.SaveMessageOnSend = true;
if (this.check)
doc.Send(false);
MessageBox.Show("Mail Sent successfully");
The above code sends email perfectly but it doesn't hide the SentBy (From field). Sent By ( From field) always shows the name of the person running this code along with the Principal. Can this be hidden so that only the Principal field, here Test Demo, is only visible.