Hi There,
I am trying to load (.msg) file and its properties by using following code snippet.
MapiMessage pMail = null;
MailMessage Obj_MailMessage = null;
MailMessageLoadOptions loadOptions = null;
Aspose.Email.Mail.Attachment attach = null;
try
{
loadOptions = new MailMessageLoadOptions();
loadOptions.MessageFormat = MessageFormat.Msg;
Obj_MailMessage = MailMessage.Load(pMsgPath, loadOptions);
pMail = MapiMessage.FromMailMessage(Obj_MailMessage, OutlookMessageFormat.Unicode);
}
catch(Exception ex)
{
}
But I see pMail(which is MapiMessage) properties I am getting SenderEmailAddress and SenderName Null. But in original Msg file SenderName is present.
I have attached msg File.I am using Aspose version 4.2.Please help.
Thanks,
Pooja
I am trying to load (.msg) file and its properties by using following code snippet.
MapiMessage pMail = null;
MailMessage Obj_MailMessage = null;
MailMessageLoadOptions loadOptions = null;
Aspose.Email.Mail.Attachment attach = null;
try
{
loadOptions = new MailMessageLoadOptions();
loadOptions.MessageFormat = MessageFormat.Msg;
Obj_MailMessage = MailMessage.Load(pMsgPath, loadOptions);
pMail = MapiMessage.FromMailMessage(Obj_MailMessage, OutlookMessageFormat.Unicode);
}
catch(Exception ex)
{
}
But I see pMail(which is MapiMessage) properties I am getting SenderEmailAddress and SenderName Null. But in original Msg file SenderName is present.
I have attached msg File.I am using Aspose version 4.2.Please help.
Thanks,
Pooja