How to Access attachments from Notes mail?

我与影子孤独终老i 提交于 2019-12-30 12:14:08

问题


I am want to access attachment of particular mail in Lotus Notes. I am getting Attachment name with $File.

But i want to extract this attachments and want to save it in user specified path.Using C#.


回答1:


It should be something similar to below, not sure if I have the correct sintax for c# though.

NotesRichTextItem rtitem = doc.GetFirstItem("name")
if ( rtitem.Type = 1) {
  foreach (NotesEmbeddedObject o in rtitem.EmbeddedObjects) {
    if ( o.Type = 1454 ) {
      o.ExtractFile( "c:\samples\" & o.Source )
    }
  }
}


来源:https://stackoverflow.com/questions/1361695/how-to-access-attachments-from-notes-mail

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