E‑mail importeren

VSTO

Hieronder staat de code om e‑mail te importeren met VSTO Outlook.

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

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

Aspose.Email

Hieronder staat de code om e‑mail te importeren met Aspose.Email voor .NET.


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

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

Broncode downloaden

Download werkend voorbeeld