C# to save Office365 email to folder

We receive log files via email which we need to save to disk.  Our email server is Office365.  We want to have the emails saved to text files on a specific network folder.  We need this job to run twice every hour .  What is the best way to achieve this?  We are ultimately expecting to have this run as part of an SSIS package
Who is Participating?
Sunil ChauhanConnect With a Mentor Expertise in Exchange Server, Office 365 & Powershell ScriptingCommented:

I had set up a PowerShell script which uses the EWS Managed API to fetch the attachment, below is the link for the same, so if you wish to use the C# you can use the same logic in your C# program, or utilize the script.

canuckconsultingAuthor Commented:
Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.