Preeti
Preeti

Reputation: 1386

How to Access attachments from Notes mail?

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#.

Upvotes: 1

Views: 1377

Answers (1)

Carlos
Carlos

Reputation: 1806

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

Upvotes: 3

Related Questions