login about faq

I'm refactoring VBScript code that used another email component. I want to scan an email inbox for emails with attachments. For each attachment in each email message I want to save the attached file in a predetermined folder on the HDD, with a predetermined name. The only examples I can find in your examples are fullEmail.SaveAllAttachments method. I've looked at imap.FetchAttachment method but this seems to assume that the attachment will be saved as to file as the attached filename. How can I save each individual attachment as a separate file with my own constructed filename and folder path?

asked Jun 24 '15 at 01:34

BernardH's gravatar image


I don't understand this sentence, perhaps you could clarify: "FetchAttachment method but this seems to assume that the attachment will be saved as to file as the attached filename."

From what I read in the ChilkatImap documentation, FetchAttachment has a saveToPath parameter that should let you save any attachment (by index) to any arbitrary path/filename. Is this not working as described?


answered Jun 24 '15 at 09:55

jpbro's gravatar image

jpbro ♦


Thanks, I must've read the doco wrong. I got it now. It's working fine :)

(Jun 25 '15 at 00:16) BernardH

Great, glad it's working - if you accept my answer by clicking the checkmark icon beside it, that will help others with the same problem in the future. Cheers!

(Jun 25 '15 at 09:26) jpbro ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 24 '15 at 01:34

Seen: 1,422 times

Last updated: Jun 25 '15 at 09:26

powered by OSQA