I am working on reading the recipients and sender information on a msg file. The msg which I have has both the sender and owner information. Is there any ways I can read the owner information form a msg file apart from the sender information?
Thanks!
Hi Meera,
Thank you for using Aspose.Email API.
Did you mean you want to retrieve Receiver’s information from a message? You can achieve this using the following code sample. Please feel free to write to us in detail if you meant to get some other information using Aspose.Email API. We shall be glad to assist you further.
Code:
MailMessage msg = MailMessage.Load("ReceivedEmail.msg");
foreach (MailAddress address in msg.To)
Console.WriteLine("To:" + address.Address);