Information générale
Catégorie:
West Wind Web Connection
Titre:
Copy file attachments
Versions des environnements
Network:
Windows 2000 Server
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement