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";  

 // loading with default options

  load from msg

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

Broncode downloaden

Download werkend voorbeeld