Extract Email Attachments from Outlook (exchange server) using C#

I am looking to use C# to extract a .zip attachment from a specific email address (does not change) from Outlook , place it in a local directory and automatically unzip it.
So when email comes in from : user@user.com with an attachment named: file.zip. The script extracts it, places it in a folder : C:\Folder,  and then unzips it using WINRAR or similar. Hope this makes sense.
Thank you for the help.
Shaggy1Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jinalCommented:
Hello ,

Can you please explain more ?

Like who is sender and who is receiver ? They are predfined or not.

You can use openpop.net to read pop3 email.


0
 
Shaggy1Author Commented:
well for privacy reasons, i can't display the actual emails. They are predefined, yes. So the sender will always be: sender@company.com and the recipient would always be: receiver@company.com.
0
 
jinalCommented:
One more thing i want to ask you that.

You want to read it from server or from outlook ?

Because if you want to read from server than simply pop3 protocol but if you want to read from outlook than you have to use Office Application in .net to read email.
0
 
chokkaCommented:
I am working on the same scenario ..! I am looking for assistance..!


Probably from the Author ( shaggy1 ) who posted this question  ..!
0
All Courses

From novice to tech pro — start learning today.