メールのインポート
Contents
[
Hide
]
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 for .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());