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

Unten steht der Code, um E‑Mails mit Aspose.Email für .NET zu importieren.


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

// Load from MSG with default options
MailMessage eml = MailMessage.Load(FilePath, new MsgLoadOptions());

Quellcode herunterladen

Laufendes Beispiel herunterladen