loki
July 22nd, 1999, 08:23 AM
hi
I want to receive mails with attached files via mapi control. c_smtp
is the mapi smtp control. All seems to work fine but i have prob
determining the original filename which i expect in [AttachmentPathName]
or [AttachmentName]. Exp: If i tried to recv config.sys i find
in [AttachmentPathName] something linke c:\temp\mai with the correct
contens and size of the file but what about the original name...
Anybody an idea?
;*]
holger kiewitz
sysEng done!ware/ger
here is the code fragment:
c_smtp.Fetch
for i = 0 to msgCount - 1
c_smtp.MsgIndex = i
subj = c_smtp.MsgSubject
mail = c_smtp.MsgNoteText
' for each attachement of the current mail
attachCount = c_smtp.AttachmentCount
for j = 0 to attachCount - 1
c_smtp.AttachmentIndex = j
path = c_smtp.AttachmentPathName
fname = c_smtp.AttachmentName
next j
next i
I want to receive mails with attached files via mapi control. c_smtp
is the mapi smtp control. All seems to work fine but i have prob
determining the original filename which i expect in [AttachmentPathName]
or [AttachmentName]. Exp: If i tried to recv config.sys i find
in [AttachmentPathName] something linke c:\temp\mai with the correct
contens and size of the file but what about the original name...
Anybody an idea?
;*]
holger kiewitz
sysEng done!ware/ger
here is the code fragment:
c_smtp.Fetch
for i = 0 to msgCount - 1
c_smtp.MsgIndex = i
subj = c_smtp.MsgSubject
mail = c_smtp.MsgNoteText
' for each attachement of the current mail
attachCount = c_smtp.AttachmentCount
for j = 0 to attachCount - 1
c_smtp.AttachmentIndex = j
path = c_smtp.AttachmentPathName
fname = c_smtp.AttachmentName
next j
next i