|
-
Jun 7th, 2006, 06:06 AM
#1
Thread Starter
New Member
[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:
.
.
' *********** Attachment Part*********
Dim atno = 0
Do Until EOF(2)
Line Input #2, str2Buff
cfname = str2Buff
.AttachmentIndex = atno
.AttachmentPosition = atno
' When using this static "First Attachment; it works Fine
' When using this Dynamic "Second Attachment; it shows the error
'.AttachmentPathName = "c:\Daily\" & "test1.txt"
.AttachmentPathName = "c:\Daily\" & cfname
atno = atno + 1
Loop
.ResolveName
.Send
Regards,,
Last edited by Paradoxx; Jun 7th, 2006 at 06:11 AM.
-
Jun 7th, 2006, 07:37 AM
#2
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"
-
Jun 7th, 2006, 07:44 AM
#3
Thread Starter
New Member
Re: MAPI Error "32011"
the Error was correct :/, files could not be found.
it is ok now!
thanks!.
-
Jun 7th, 2006, 07:51 AM
#4
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"
-
Jun 7th, 2006, 07:53 AM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|