استيراد البريد الإلكتروني

VSTO

فيما يلي الشيفرة لاستيراد البريد الإلكتروني باستخدام VSTO Outlook.


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

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

Aspose.Email

فيما يلي الشيفرة لاستيراد البريد الإلكتروني باستخدام aspose.email لـ .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());

تحميل الشيفرة المصدرية

تحميل المثال التشغيلي