You can use
CDO for Windows 2000 to parse emails. You can find VB sample at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_idatasource_interface.asp?frame=true. It shouldn't be hard to convert to VFP. For example,
loStm = CREATEOBJECT("ADODB.Stream")
lcEmFileName = < ... >
loStm.Open()
loStm.LoadFromFile(lcEmFileName)
loMsg = CREATEOBJECT("CDO.Message")
loDsrc = loMsg.DataSource
loDsrc.OpenObject(loStm, "_Stream")
? loMsg.Attachments.Count
? loMsg.To
? loMsg.Subject
...
>
>I supposed you have some modified code for receiving email with attached files.
>Your code which sent me secondly by email does not include such a function.
>
>MSwinsock inspired me to make good mail client program like outlook express.
>But yet, I spent a lot of time to find solution for receiving attached files.
>
>Do you have another code for this kind of solution. I always appreciate your kindly answers.
>Thanks,
>
>Stephen Chi
--sb--