Results 1 to 5 of 5

Thread: [RESOLVED] MAPI Error "32011"

  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.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: MAPI Error "32011"

    are u sure the file doesnt have anything else in it that could make the filename error?

    do this

    Debug.Print "c:\Daily\" & cfname
    or
    Msgbox "c:\Daily\" & cfname

    and double check what its reading
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    5

    Re: MAPI Error "32011"

    the Error was correct :/, files could not be found.

    it is ok now!
    thanks!.

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: MAPI Error "32011"

    no problem!

    by the way..


    Please take a minute to mark the thread resolved... go to thread tools and click 'Mark thread resolved'

    Thanks!!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    5

    Re: [RESOLVED] MAPI Error "32011"

    Thank you for informing.


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