Results 1 to 5 of 5

Thread: [RESOLVED] MAPI Error "32011"

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    5

    Resolved [RESOLVED] MAPI Error "32011"

    Hello Everyone,

    I am trying to send an email reading the attachements dynamically from a text file.
    whenever the compiler reaches the ".Send" it shows:

    "Run-Time Error '32011'
    Attachment not found"

    although when i use a static attachment name the program works properly.
    Any help please!!

    VB Code:
    1. .
    2. .
    3.  
    4. ' *********** Attachment Part*********
    5.  
    6. Dim atno = 0
    7.  
    8. Do Until EOF(2)
    9. Line Input #2, str2Buff
    10.  
    11.         cfname = str2Buff
    12.        
    13.         .AttachmentIndex = atno
    14.         .AttachmentPosition = atno
    15.        
    16.         ' When using this static "First Attachment; it works Fine  
    17.         ' When using this Dynamic "Second Attachment; it shows the error
    18.  
    19.         '.AttachmentPathName = "c:\Daily\" & "test1.txt"
    20.         .AttachmentPathName = "c:\Daily\" & cfname
    21.  
    22. atno = atno + 1
    23. Loop
    24.  
    25.         .ResolveName
    26.                
    27.         .Send

    Regards,,
    Last edited by Paradoxx; Jun 7th, 2006 at 06:11 AM.

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