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,,
![]()




Reply With Quote