Use Outlook VBA
https://www.slipstick.com/developer/save-attachments-to-the-hard-drive/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Need some help with a powershell script which I can use to download attachments in a mail and save to a particular folder.
I have 3 email coming to me daily, which have a specific subject line, and each of them have an attachment.
I need to save it into a predefined folder.
Would it be possible to define a folder based on the Subject line?
Thanks in advance for the help.
Hi @mishan1134 ,
Agree with vTech, we could save the specific attachment with a specific attachment via use outlook rules and run a script(Rules>Manage rules and alerts>New rules>Apply rule on the message I receive>with specific word in subject>run a script).
If you still need related information about powershell, I have researched a lot about it and found a similar thread, which provides some reference code, please kindly check if it could also work for you.
Hope your issue would be resolved soon and if your issue has any update, please feel free to post back.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.