Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy file attachments
Message
De
01/03/2005 11:13:30
 
 
À
28/02/2005 15:28:19
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00991344
Message ID:
00991588
Vues:
13
Just a guess: is the email HTML formatted? I think when this happens, the message actually arrives as multipart MIME, with the HTML part probably looking the same as an attachment, and email clients are doing their thing to render it. I don't have a solution per se, but this is worth checking into. Maybe there's a way to detect this situation by examining the attachment. -- Randy

>I am using sample code for wwpop3 to retrieve email.
>
>It works well and is fast and I have put email data for each email to a table (works GREAT), but I am a little confused as to how to store a copy of the attachments.
>
>loPOP = Createobject("wwPOP3")
>
>Even if the email has NO attachments, loPOP.aMessages[x].nAttachments apparently returns a value of 1 (saying there is one attachment). So naturally I just ignore attachment one.
>
>I want to copy all other attachments to a local drive.
>
>SO I want to copy:
>loPop.aMessages[x].aAttachments[y].cBody to a file named
>loPOP.aMessages[x].aAttachments[y].cFileName on my local system
>
>
>Can you help me with this?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform