Results 1 to 2 of 2

Thread: Getting attachment using MAPI

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    1

    Question

    How can you save attachments (text files) to a file from e-mails just as simple text files, i'm using Microsoft Outlook '97.

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655

    Cool

    set out = createobject("outlook.application")
    Set myItem = out.ActiveInspector.CurrentItem
    myItem.attachments.item(1).saveasfile PathName

    This will save the first attachment from the active open message to the PathName. You can also access items in unopen messages, but that takes a lot longer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width