1

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

Preeti
  • 1,386
  • 8
  • 57
  • 112
  • duplicate: http://stackoverflow.com/questions/1431546/how-to-get-attachment-value-from-file-item-using-c-lotus-notes – Greg D Sep 18 '09 at 20:32

1 Answers1

3

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 )
    }
  }
}
Carlos
  • 1,696
  • 1
  • 14
  • 21
  • Carlos - if you edit your answer and indent your lines of code with four spaces, it will be more readable online. – Ken Pespisa Sep 01 '09 at 13:33