Hallo zusammen,
ich versuche gerade anhand eines c#-Program auf Emails in meinem Outlook zuzugreifen !
Ich bin leider neu was solche Sachen angeht !
Ich hab's bis jetzt geschaft eine Outlook-App zu straten mit diesem Code:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 Outlook.Application oApp = null;
 
            try
            {
                // using the existing outlook that is already started
                oApp = (Outlook.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Outlook.Application");
            }
            catch (COMException e)
            {
                string sMsg = e.Message;
 
                if (oApp == null)
                {
                    // if there is no outlook already running -- start it
                    oApp = new Outlook.Application();
                }
            }

Nun will ich die Emails in meinem Inbox alle durchgehen die Betreffzeile lesen und von bestimmten Emails die Attachements nehmen und irgendwo speichern !
Hat vielleicht jemand eine Idee wie sowas funktionieren könnte ?

Vielen Dank im voraus,
crombix.