Working with the SMTP/PoP3 Mail example files that ship with RB. Trying to add ability to receive email attachments using the Email Attachment Class. The only code sample I can locate in the LR is for adding attachments for SMTP using LoadFromFile. I can't figure out the code to get the email attachments and then use SaveToFile, which I think is the method needed to save the attachments. I suspect that it would be added to Socket1's messagerecieved, but I'm not sure.

Any help or sample for PoP3 including getting/saving attachments would be much appreciated.

If I add the following, I get an error debugging message that this method or property does not exist, pointing either at at the dim f as FolderItem (if I leave out the conditional if statement) or pointing at the if statement:

Absent better understanding of the folder item (from reading in the LR, I am assuming this is a function), I am thinking that this must be the folder location to store the email attachment-attachment 0 or first one in an array. So, I am trying to define a folder location, check if there is an attachment and if not Null, get the attachment and save it there. Seems logical. Just can't seem to get it to happen.