E‑Mail importieren

VSTO

Untenstehend finden Sie den Code zum Importieren von E‑Mails mit VSTO Outlook.


  string FilePath = @"E:\Aspose\Aspose VS VSTO\Sample Files\ImportEmail.msg";

 Outlook.MailItem email = (Outlook.MailItem)Application.Session.OpenSharedItem(FilePath);       

Aspose.Email

Untenstehend finden Sie den Code zum Importieren von E‑Mails mit aspose.email für .NET.


  string FilePath = @"E:\Aspose\Aspose VS VSTO\Sample Files\ImportEmail.msg";  

 // loading with default options

  load from msg

   MailMessage eml = MailMessage.Load(FilePath, new MsgLoadOptions());

Quellcode herunterladen

Laufendes Beispiel herunterladen